Jump to content

Storing Chinese and Other Symbols MySql


glenelkins

Recommended Posts

Hi

 

Not sure if this is in the right forum, but essentially I think i need to do something in php before storing strings.

 

I may need to store Chinese, Russian, German and other symbols in the database exactly, i don't want them converting to unicode or anything like that. I looked at mysql collations and none of them seem to work for every single language, they are mainly language specific.

 

So a) what collation do i need b) what do i need to do to strings to be able to save any character i want in mysql

 

thanks

Link to comment
Share on other sites

ok here is a better example.

 

the php code scrapes the category URLs from alexa, and it gets to this URL in alexas html: http://www.alexa.com/topsites/category/Top/World/Catala

 

this example url, the last "a" on Catala has an accent symbol above it. But when I echo the variable from PHP, its converted that small "a" with the accent, to a capitol "A" with an accent. Why is it doing that? Thats not what I need. If you goto the category on alexa, you will see what it should be www.alexa.com/topsites/category -> World ->Catala

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.