Unicode conversion
Moderator: General Moderators
Unicode conversion
I have a data file created from a sql server db, I have to load that in php, identify certain kind of data, massage it and insert the massaged data onto another table in sql server. The data has unicode characters and I am unable to identify it. I have uncommented extension=php_mbstring.dll in php.ini. What else should I be doing. Pls. help. Thanks.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Have you read the documentation on mbstring (http://www.php.net/manual/en/ref.mbstring.php), plus the specific functions that would be of interest to you? There is a lot of information and you will need to decide what configuration is best for you.
(#10850)
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Unicode conversion
You say:
As long as you have your HTML document character set set correctly, use binary safe PHP functions, and have the database set to handle the character sets you are using, you should not be changing your data.
I guess my first question is -- Have you tried it and does are there problems?ratan wrote: I have to load that in php, identify certain kind of data, massage it and insert the massaged data onto another table in sql server.
As long as you have your HTML document character set set correctly, use binary safe PHP functions, and have the database set to handle the character sets you are using, you should not be changing your data.
(#10850)