Re[4]: [PHP] ANSI to ISO-8859-2

From: Date: Tue, 23 Sep 2008 07:36:56 +0000
Subject: Re[4]: [PHP] ANSI to ISO-8859-2
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-280751@lists.php.net to get a copy of this message
Hi, this is working but I would like better solution: function Decode_String($text) { $from = Array("Á", "á", "Č", "č", "Ď", "ď", "É", "é", "Ě", "ě", "Í", "í", "Ň", "ň", "Ó", "ó", "Ř", "ř","Š", "š", "Ť", "ť", "Ú", "ú", "Ů", "ů", "Ý", "ý", "Ž", "ž"); $to = Array("Á", "á", "Č", "č", "Ď", "ď", "É", "é", "Ě", "ě", "Í", "í", "Ň", "ň", "Ó", "ó", "Ř", "ř", "Š", "š", "Ť", "ť", "Ú", "ú", "Ů", "ů", "Ý", "ý", "Ž", "ž"); return str_replace($from, $to, $text); } I have php 4.4.8 and this is emergency soulution because I have presentation today. After it I can investigate where problem is. Thank you Radek

« previous php.general (#280751) next »