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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.