Re: [PHP] conversion of unicode characters into utf-8
At 10:26 PM -0700 6/16/08, valsaraj wrote: Hi, I am using code $val = htmlentities($val, ENT_QUOTES, UTF-8); but it's not working in version 5.2.0. Is there any additional configuration needed for this. it's working well in 5.2.2. Could you please help me??? -- Here's a good article on the subject, with code! http://randomchaos.com/documents/?source=php_and_unicode Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] conversion of unicode characters into utf-8
On Mon, Jun 16, 2008 at 11:26 PM, valsaraj [EMAIL PROTECTED] wrote: Hi, I am using code $val = htmlentities($val, ENT_QUOTES, UTF-8); but it's not working in version 5.2.0. Is there any additional configuration needed for this. it's working well in 5.2.2. Could you please help me??? have you compared ini settings between the 5.2.0 environment and the 5.2.2 environment for differences, esp. in the multibyte settings ? -nathan
Re: [PHP] conversion of unicode characters into utf-8
Thanks. But in php 5.2.2 it's not compiled with mbstring. But in version 5.2.0 it's compiled with mbstring support, but I don't get information aboout what settings is required by htmlentities() to work properly. Could you help to find out this? valsaraj wrote: Hi, I am using code $val = htmlentities($val, ENT_QUOTES, UTF-8); but it's not working in version 5.2.0. Is there any additional configuration needed for this. it's working well in 5.2.2. Could you please help me??? -- View this message in context: http://www.nabble.com/conversion-of-unicode-characters-into-utf-8-tp17878398p17908695.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] conversion of unicode characters into utf-8
valsaraj wrote: valsaraj wrote: Hi, I am using code $val = htmlentities($val, ENT_QUOTES, UTF-8); but it's not working in version 5.2.0. Is there any additional configuration needed for this. it's working well in 5.2.2. Could you please help me??? Thanks. But in php 5.2.2 it's not compiled with mbstring. But in version 5.2.0 it's compiled with mbstring support, but I don't get information aboout what settings is required by htmlentities() to work properly. Could you help to find out this? -- View this message in context: http://www.nabble.com/conversion-of-unicode-characters-into-utf-8-tp17878398p17908959.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] conversion of unicode characters into utf-8
valsaraj [EMAIL PROTECTED] wrote: Thanks. But in php 5.2.2 it's not compiled with mbstring. But in version 5.2.0 it's compiled with mbstring support, but I don't get information aboout what settings is required by htmlentities() to work properly. Could you help to find out this? valsaraj wrote: Hi, I am using code $val = htmlentities($val, ENT_QUOTES, UTF-8); but it's not working in version 5.2.0. Is there any additional configuration needed for this. it's working well in 5.2.2. Could you please help me??? Load your php.ini from both versions Look at the configuration string side-by-side Reconfigure your 5.2.2 with the 5.2.0 settings. Reload apache You could also STFW: http://www.google.com/search?hl=enclient=firefox-arls=com.ubuntu%3Aen-US%3Aunofficialhs=Z0xq=php%3A+convert+of+unicode+characters+into+utf-8+btnG=Search And depending on your OS, you could look for a php-mbstring package that you just need to install and then reload apache. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] conversion of unicode characters into utf-8
Hi, I am using code $val = htmlentities($val, ENT_QUOTES, UTF-8); but it's not working in version 5.2.0. Is there any additional configuration needed for this. it's working well in 5.2.2. Could you please help me??? -- View this message in context: http://www.nabble.com/conversion-of-unicode-characters-into-utf-8-tp17878398p17878398.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php