note 59489 deleted from function.strtr by danbrown

From: Date: Thu, 04 Mar 2010 18:21:23 +0000
Subject: note 59489 deleted from function.strtr by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166672@lists.php.net to get a copy of this message
Note Submitter: Sanate at seznam dot cz ---- // Translates iso-8859-2 into UTF-8 function latin2_to_utf8($text) { $trans = array( chr(225)=>'á', chr(193)=>'Á', chr(232)=>'è', chr(200)=>'È', chr(239)=>'ï', chr(207)=>'Ï', chr(233)=>'é', chr(201)=>'É', chr(236)=>'ì', chr(204)=>'Ì', chr(237)=>'í', chr(205)=>'Í', chr(181)=>'¾', chr(165)=>'¼', chr(242)=>'ò', chr(210)=>'Ò', chr(243)=>'ó', chr(211)=>'Ó', chr(248)=>'ø', chr(216)=>'Ø', chr(185)=>'š', chr(169)=>'Š', chr(187)=>'', chr(171)=>'', chr(250)=>'ú', chr(218)=>'Ú', chr(249)=>'ù', chr(217)=>'Ù', chr(253)=>'ý', chr(221)=>'Ý', chr(190)=>'ž', chr(174)=>'Ž', chr(180)=>"'" ); return strtr($text, $trans); } // enjoy! :)

« previous php.notes (#166672) next »