A
Allan Yates
I have been having distinct trouble creating file names in PERL
containing UNICODE characters. I am running ActiveState PERL 5.8 on
Windows 2000.
For a simple test, I picked a UNICODE character that could be
displayed by Windows Explorer. I can select the character(U+0636) from
'charmap' and cut/paste into a filename on Windows Explorer and the
character displays the same as it does in 'charmap'. This proves that
I have the font available.
When I attempt to create the same filename with PERL, I end up with a
filename two characters long: ض
I somebody could point me in the correct direction, I would very much
appreciate it. I have read the UNICODE documents included with PERL as
well searching the newgroups and the web, and everything appears to
indicate this should work.
Perl program:
$name = chr(0x0636);
if (!open(FILE,">uni_names/$name")) {
print STDERR "Could not open ($!): $name\n";
}
close (FILE);
Thanks,
Allan.
a y a t e s a t s i g n i a n t d o t c o m
containing UNICODE characters. I am running ActiveState PERL 5.8 on
Windows 2000.
For a simple test, I picked a UNICODE character that could be
displayed by Windows Explorer. I can select the character(U+0636) from
'charmap' and cut/paste into a filename on Windows Explorer and the
character displays the same as it does in 'charmap'. This proves that
I have the font available.
When I attempt to create the same filename with PERL, I end up with a
filename two characters long: ض
I somebody could point me in the correct direction, I would very much
appreciate it. I have read the UNICODE documents included with PERL as
well searching the newgroups and the web, and everything appears to
indicate this should work.
Perl program:
$name = chr(0x0636);
if (!open(FILE,">uni_names/$name")) {
print STDERR "Could not open ($!): $name\n";
}
close (FILE);
Thanks,
Allan.
a y a t e s a t s i g n i a n t d o t c o m