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 :-)
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
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)
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
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