Thread Konvertieren: Von "ich würde gern wissen was Du bist" nach utf-8 (29 answers)
Opened by cbxk1xg at 2011-07-26 22:33

cbxk1xg
 2011-07-26 22:51
#150779 #150779
User since
2003-10-20
496 Artikel
BenutzerIn
[default_avatar]
Ich mache mit dem Modul in einer Schleife über alle Tags folgendes:
Code (perl): (dl )
1
2
3
        my $enc = guess_encoding($request, qw/7bit-jis AdobeStandardEncoding AdobeSymbol AdobeZdingbat ascii ascii-ctrl big5-eten big5-hkscs cp1006 cp1026 cp1047 cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp37 cp424 cp437 cp500 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp858 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp875 cp932 cp936 cp949 cp950 dingbats euc-cn euc-jp euc-kr gb12345-raw gb2312-raw gsm0338 hp-roman8 hz iso-2022-jp iso-2022-jp-1 iso-2022-kr iso-8859-1 iso-8859-10 iso-8859-11 iso-8859-13 iso-8859-14 iso-8859-15 iso-8859-16 iso-8859-2 iso-8859-3 iso-8859-4 iso-8859-5 iso-8859-6 iso-8859-7 iso-8859-8 iso-8859-9 iso-ir-165 jis0201-raw jis0208-raw jis0212-raw johab koi8-f koi8-r koi8-u ksc5601-raw MacArabic MacCentralEurRoman MacChineseSimp MacChineseTrad MacCroatian MacCyrillic MacDingbats MacFarsi MacGreek MacHebrew MacIcelandic MacJapanese MacKorean MacRoman MacRomanian MacRumanian MacSami MacSymbol MacThai MacTurkish MacUkrainian MIME-B MIME-Header MIME-Header-ISO_2022_JP MIME-Q nextstep null posix-bc shiftjis symbol UCS-2BE UCS-2LE UTF-16 UTF-16BE UTF-16LE UTF-32BE UTF-32LE UTF-7 utf-8-strict utf8 viscii/);
        ref($enc) or die "Can't guess: $enc";
        my $string = $enc->decode($request);


Und dann bekomme ich folgenden Fehler: \xC4 does not map to Unicode at /usr/local/lib/perl/5.10.1/Encode/Guess.pm line 139

View full thread Konvertieren: Von "ich würde gern wissen was Du bist" nach utf-8