perl-unicode

Re: How to convert base64 string to utf-8

2004-02-02 13:30:05

At 7:36 pm +0100 2/2/04, Guido Flohr wrote:

Unfortunately, you will be out of luck for the somewhat common case of UTF-7 (unless it is available in Encode by now).


It is:


use Encode;
for ( Encode->encodings(":all") ) { print "$_$/" }


7bit-jis
AdobeStandardEncoding
AdobeSymbol
AdobeZdingbat
ascii
ascii-ctrl
big5-eten
big5-hkscs
big5-simp
big5ext
big5plus
cccii
cns11643-1
cns11643-2
cns11643-3
cns11643-4
cns11643-5
cns11643-6
cns11643-7
cns11643-f
cp1006
cp1026
cp1047
cp1250
cp1251
cp1252
cp1253
cp1254
cp1255
cp1256
cp1257
cp1258
cp37
cp424
cp437
cp500
cp737
cp775
cp850
cp852
cp855
cp856
cp857
cp860
cp861
cp862
cp863
cp864
cp865
cp866
cp869
cp874
cp875
cp932
cp936
cp949
cp950
dingbats
euc-cn
euc-jp
euc-kr
euc-tw
gb12345-raw
gb18030
gb2312-raw
gbk-trad
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-Q
nextstep
null
posix-bc
shiftjis
simp-trad
symbol
trad-simp
UCS-2BE
UCS-2LE
unisys
UTF-16
UTF-16BE
UTF-16LE
UTF-32
UTF-32BE
UTF-32LE
UTF-7
utf8
viscii