TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Datbase accepting foreign letters? (http://www.talkphp.com/general/3246-datbase-accepting-foreign-letters.html)

Jako 08-16-2008 09:38 PM

Datbase accepting foreign letters?
 
How do I input words into a database while keeping the formatting of the text that I copied with accents, etc.

is what happens.

Jako 08-16-2008 10:08 PM

Tossing, <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8" > into the header seems to have fixed it.

Jako 08-18-2008 03:26 AM

Now only question is...is there a way to search using normal letters for a word that maybe contains a accent?

For example, Confederación and Confederation return the same results.

CoryMathews 08-18-2008 12:23 PM

I have run into this same problem on an application I am working on but we are putting it off but will more then likely just remove the accent before entering it into the database because mssql full text search doesnt see them as the same thing, and thats whats being used.

Speeple 08-18-2008 12:47 PM

That is due to folding and mapping of characters to a common derivative - which is normally a English-Latin characters (non-accented Latin) due to the dominance of English in programming implementations.

It normally makes sense to add folding, Google for example employ the technique also.

There might be a config option in MSSQL, but in MySQL it's an in-built feature.

For non-FT queries you can do a binary compare:

SELECT * FROM myTable WHERE BINARY title = 'Confederación';

flyingbuddha 08-27-2008 05:47 PM

Google soundex


All times are GMT. The time now is 01:31 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0