|
-
Jul 11th, 2005, 10:38 PM
#1
Thread Starter
Addicted Member
how to insert the unicode to mysql?
Hi all!
i try to insert the unicode to mysql by using INSERT statement, but data that inserted is not unicode it is latin character not code of uncode.
so how can i insert unicode from php.
best regards,
thirith
-
Jul 12th, 2005, 02:04 AM
#2
Re: how to insert the unicode to mysql?
MySQL natively stores everything as Unicode starting with 4.1. But I believe the PHP DB drivers transcode, because PHP really only supports ISO-8859-1.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jul 12th, 2005, 07:51 AM
#3
Thread Starter
Addicted Member
Re: how to insert the unicode to mysql?
 Originally Posted by CornedBee
MySQL natively stores everything as Unicode starting with 4.1. But I believe the PHP DB drivers transcode, because PHP really only supports ISO-8859-1.
How should i do if i want to insert the unicode V4 to Mysql database through php?
i try to use decode and encode but it is not work.
-
Jul 12th, 2005, 10:01 AM
#4
Re: how to insert the unicode to mysql?
You just need to treat unicode characters as integers in your applications. Heres some examples of how its done:
http://www.randomchaos.com/document....hp_and_unicode
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|