Jump to content
UBot Underground

Help with utf-8 chars in mysql query


Recommended Posts

Does anybody knows how to handle a mysql query that inserts some utf-8 text into a table correctly ?

 

I tried everything (I checked db collation and fields are all utf8-general-ci), but always the text stored in db like this: 

 

???ed?? ??uh???

 

I think that the utf-8 encoding should be the default...

 

Any help will be very appreciated..

Link to post
Share on other sites

where have u wrote the script?
if in a external editor like notepad  u have to save it with utf8 format and then copy to ubot  maybe that helps

Link to post
Share on other sites

It's a simple .txt file that I saved with utf8 encoding, and then I read that file to populate a database. It's a simple task, but can not overcome this encoding thing..

 

Thanks blumi40 for your suggestion anyway.

Link to post
Share on other sites
  • 7 months later...
  • 11 months later...

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...