Jump to content

MySQL Character problem


Recommended Posts



I'm now working with some very weird characters and i can't figure out how i can use those in an query.

For example:



An user used this username. But the problem is i cant refuse him cause i get this data from other servers so out of my control. Now i need to search trough my DB if this user exists. I've tried alot and i got stuck at this place:


SELECT s.ID AS ID, s.Name AS servername, s.Port AS port, s.Password AS pass, s.Country as country, s.Map AS map, s.Curplayers AS numplayers, s.Maxplayers AS maxplayers, s.host AS ip, s.Game AS gamename,s.Time AS timestamp, p.Name AS playername, p.ServerID, game.shortname, game.zoomname FROM servers s, players p LEFT JOIN game ON s.Game=game.shortname WHERE s.ID = p.ServerID AND p.Name LIKE CONVERT( _utf8 '%#eFrag.css|ÄλÑÒœ%' USING latin1) COLLATE latin1_swedish_ci ORDER BY p.Name, s.Name


Query error:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''%#eFrag.css|ÄλÑÒœ%' USING la


Who can help me? Cause i'm already trying with this problem for 3 hours and several people helped me but they didn't know either.


Thx alot!





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.

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.