perl-unicode

Re: Converting string to UTF-16LE

2004-02-29 16:30:05
Maybe 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


<Prev in Thread] Current Thread [Next in Thread>