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 <[EMAIL PROTECTED]> http://www.iki.fi/jhi/ "There is this
special
biologist word we use for 'stable'. It is 'dead'." -- Jack Cohen
- Converting string to UTF-16LE Sebastian Lehmann
- Re: Converting string to UTF-16LE Nick Ing-Simmons
- Re: Converting string to UTF-16LE Sebastian Lehmann
- Re: Converting string to UTF-16LE John Delacour
- Re: Converting string to UTF-16LE John Delacour
- Re: Converting string to UTF-16LE Jarkko Hietaniemi
- Re: Converting string to UTF-16LE John Delacour
- Re: Converting string to UTF-16LE Larry Wall
- Re: Converting string to UTF-16LE Nick Ing-Simmons
- Re: Converting string to UTF-16LE SADAHIRO Tomoyuki
- Re: Converting string to UTF-16LE Robert Allerstorfer
- Re: Converting string to UTF-16L... Larry Wall
- Re: Converting string to UTF... Jarkko Hietaniemi
- Re: Converting string to... Jarkko Hietaniemi
- Re: Converting string to... Larry Wall
- Re: Converting string to... Jarkko Hietaniemi