RE: [PHP] utf8 encoding £ to £ problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Chris,

UTF-8 certainly does include the £ symbol (UTF-8 is a superset of ASCII so
has all the ASCII characters plus many others).

I've recently converted my database-driven app to UTF-8 and encountered
various issues that were quite awkward to resolve. In this case, I would
expect that the £ sign string you are passing to the utf8_encode function is
already UTF-8 encoded.

One trick I found most useful was to convert test strings to hex. That way I
could see exactly how the string was encoded.

Edward

> -----Original Message-----
> From: Chris Dean [mailto:Chris.Dean@xxxxxxxxxxxxxx]
> Sent: 05 December 2006 12:38
> To: php-general@xxxxxxxxxxxxx
> Subject:  utf8 encoding £ to £ problem
>
>
> Hi
>
>
>
> I was just wondering if anyone knows why php's utf8_encode
> function converts the £ symbol into £
>
>
>
> Is this a bug in php or is it because utf8 doesn't include the £
> symbol (can't find a quick and easy ref to say if it does or not)
> and as such the function outputs junk?
>
>
>
>
>
> Kind Regards
>
>
>
> Chris Dean
>
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux