perl-unicode
|
Re: Converting string to UTF-16LE2004-02-29 16:30:05Maybe I'm missing something...?perl -le 'open(X, ">:encoding(ucs2be)", "ucs2be");print X chr(0x1234);close X' perl -le 'open(X, "<:encoding(ucs2be)", "ucs2be");printf "%x\n", ord(<X>)' --Jarkko Hietaniemi <jhi(_at_)iki(_dot_)fi> http://www.iki.fi/jhi/ "There is this special biologist word we use for 'stable'. It is 'dead'." -- Jack Cohen
|
|