There's a lot of perl experience here. Anybody worked with unicode
in perl?
I'm trying to output a string of characters as 16-bit unicode. If they
were all ascii, I'd do this for each one:
print MYFILE pack("n", ord($my_chr));
The analogous line with unicode text is
print MYFILE pack("W", ord($my_chr));
but that gets me utf-8 text: one byte for 7-bit ascii characters and
two for most others. I want utf-16, not utf-8, each char exactly 16
bits, but modifying the outfile screws everything up, e.g.
open MYFILE, ">:encoding(utf-16)", "$filepath";
BTW, if there's a good place within the perl community to ask questions
like this I'd appreciate a pointer. Google hasn't helped -- though as
always it's probably that I just don't know how to ask.
Thanks,
--Eric
--
******************************************************************************
* From the desktop of: Eric House, [email protected] *
* Crosswords 4.2 for MS Smartphone and PocketPC is OUT: xwords.sf.net *
******************************************************************************
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug