Jump to content

sql charset problem


dannybrazil

Recommended Posts

Hello

 

My site is in PORTUGUESE (charset=iso-8859-1").

 

so a users name could be, for example:

 

Marcus

Marcos

M?rcos

Marc?s

?,?,?, ?, ?, etc....

 

I have an option that allows to search users on my page.

 

I use %LIKE% in my code, but it is not working correctly.

 

If the user name is Marcus

and someone is looking for M?rcus

it doesn't return anything

 

Is there a way to disregard ACCENTS while SQL searching?

just letters, pure?

 

Danny.

 

 

Link to comment
https://forums.phpfreaks.com/topic/266060-sql-charset-problem/
Share on other sites

The part called "collation" in the DB, should be UTF8, you mean?

 

ok

 

I have a list of 20+ utf8_

 

there is no utf8_portuguese .

 

should I choose. utf8_unicode_ci ??

 

MySql connection collation on all database to be :  utf8_general_ci and collation of the tables too.

 

Did you fix the problem with "SET NAMES  UTF8" ?

 

Link to comment
https://forums.phpfreaks.com/topic/266060-sql-charset-problem/#findComment-1363380
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.