ugrás a tartalomhoz

ISO-8859-2 -> UTF-8 konverzió

Anonymous · 2006. Dec. 3. (V), 00.08
sziasztok!

ha van valakinek egy jol mukodo kodreszlete a fenti konverziora, szivesen foadnam !

Elore is koszonettel
Isti
 
1

iconv

Hojtsy Gábor · 2006. Dec. 3. (V), 00.22
  1. <?php  
  2. $utf_szoveg = iconv("ISO-8859-2""UTF-8"$iso_szoveg);  
  3. ?>  
2

iconv

Rici · 2006. Dec. 3. (V), 00.22
3

re: iconv

Anonymous · 2006. Dec. 3. (V), 00.29
Köszi! nem ismertem ...
4

lehetseges megoldas

pixelsys · 2006. Dec. 3. (V), 00.53
  1. function convertIso88592ToUtf8($text) {  
  2.     $text = utf8_encode($text);  
  3.     $text = str_replace(chr(0xC3) . chr(0xB5), chr(0xC5) . chr(0x91), $text);       // ő  
  4.     $text = str_replace(chr(0xC3) . chr(0x95), chr(0xC5) . chr(0x90), $text);       // Ő  
  5.     $text = str_replace(chr(0xC3) . chr(0xBB), chr(0xC5) . chr(0xB1), $text);       // ű  
  6.     $text = str_replace(chr(0xC3) . chr(0x9B), chr(0xC5) . chr(0xB0), $text);       // Ű  
  7.     return $text;  
  8. }