Edward Batutis <ed(_at_)batutis(_dot_)com> writes:
Also each character when I view it via character
listing of IME pad, it has three hex numbers.
Seeing three hex numbers per character is a sure sign you've got utf8. You
need to convert the characters to the platform encoding before using 'open'.
In fact, I believe you have to wrap conversions around every (?) function or
operator that uses characters and deals with the system unless the
underlying OS can deal with utf8.
=ED
NT and later can deal with Unicode - but at C level you need to make
calls to special functions and pass 16-bit wide chars.
There is support for this in perl, but you have to ask for it.
I have not tried it myself (yet) but I think you
use perl -C to enable perl to use Win32's Unicode APIs
to open() etc. (Something has changed in this area for 5.8.1 and later...)