in reply to Re: how to make a filename in unicode characters
in thread how to make a filename in unicode characters
I have tried initially as per below code
my $title = "​கோப்பு& +#8203;பெயர்"; open XXX, ">:encoding(UTF-8)", "c:/$title\.xml"; close (XXX);
Then I tried something like below
$title = encode("UTF-16LE", "​கோப் +;பு​பெயர்"); open XXX, ">:encoding(UTF-8)", "c:/$title\.xml"; close (XXX);
In the above codes I am not used hexadecimal entities, straightaway characters, here it converts those characters to hexadecimal entitites
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: how to make a filename in unicode characters
by Corion (Patriarch) on Jul 02, 2011 at 07:49 UTC |
In Section
Seekers of Perl Wisdom