Re: Converting string to UTF-16LE

2004-02-29 Thread John Delacour
At 12:43 am +0200 1/3/04, Jarkko Hietaniemi wrote: 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()' No. It was me that was missing it :-)

Re: Converting string to UTF-16LE

2004-02-29 Thread Jarkko Hietaniemi
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()' -- Jarkko Hietaniemi <[EMAIL PROTECTED]> http://www.iki.fi/jhi/ "There is this special biologist word we use fo

Re: Converting string to UTF-16LE

2004-02-29 Thread John Delacour
At 8:58 pm + 29/2/04, John Delacour wrote: Suppose that /tmp/iba.txt contains the text "ibañez" in UCS-2, preceded by the BOM, then this works here (Perl 5.8.3) use Encode qw/encode decode/; my $f_16 = qq~/tmp/iba.txt~; open F16, qq~$f_16~; my $ucs2 = ; my $utf8 = decode("UCS-2BE", $ucs2)

Re: Converting string to UTF-16LE

2004-02-29 Thread John Delacour
At 6:19 pm +0100 25/2/04, Sebastian Lehmann wrote: Can anybody tell me how to work with UTF8 and UTF16 in the same script? Any help would be greatly appreciated. Suppose that /tmp/iba.txt contains the text "ibañez" in UCS-2, preceded by the BOM, then this works here (Perl 5.8.3) use Encode qw/e

[FYI] JIS X 0213:2004

2004-02-29 Thread SADAHIRO Tomoyuki
Hello, all. JIS X 0213 is revised at Feb 20, 2004 (as Amendment 1). Short summary: * Notorious parenthesized UCS code points (Unexisting UCS code points were given in parentheses) are gone. * 25 JIS characters are mapped to a sequence of two UCS characters. These mappings are identical to on