Re: conversion of unicode characters into utf-8
| From: | Wolf | Date: | Tue, 17 Jun 2008 15:40:18 +0000 |
| Subject: | Re: conversion of unicode characters into utf-8 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-275485@lists.php.net to get a copy of this message | ||
---- valsaraj <valsarajpv@gmail.com> 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=en&client=firefox-a&rls=com.ubuntu%3Aen-US%3Aunofficial&hs=Z0x&q=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.