Re: Converting "\u00F4" style characters

From: Date: Tue, 18 May 2004 09:24:59 +0000
Subject: Re: Converting "\u00F4" style characters
References: 1 2  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-701@lists.php.net to get a copy of this message
Hi Asgeir Frimannsson, you wrote: > Hi Mike, > > Don't know if this is exactly what you're after, but the following > example converts hex unicode, eg "00F4" (strip the "\u") to utf8: > > <?php [...] > $ch4 = '0034'; // digit '4' > $chA = '0041'; // char 'A' > $utf4 = unicode_to_utf8($ch4); > $utfA = unicode_to_utf8($chA); > > print $utf4 ."\n" . $utfA; > ?> Hi Asgeir, it seems that the function doesn't work with higher values like "\u20AC" which is the EUR symbol :-( Any ideas? Many thanks, -- Michael - < mike(@)php.net >

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.i18n (#701) next »