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:[EMAIL PROTECTED]
> Sent: 05 December 2006 12:38
> To: php-general@lists.php.net
> Subject: [PHP] 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

Reply via email to