in reply to Tk Photo method
Your code tries to read a file name containing lots of ampersands, digits, pound signs, and semicolons. Do you really want to do that?
Perl is not HTML, you may want to write \x{1234} inside double quotes instead of Ӓ inside single quotes.
But then, filenames are BYTE STREAMS for Perl. If your local system convention is that the file name byte streams represent UTF-8 encoded names, you need to convert your unicode string into the equivalent UTF-8 byte stream. Encode can help you with that, using $byte_stream=encode('utf8',$name) or $byte_stream=encode_utf8($name).
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tk Photo method
by Anonymous Monk on Nov 26, 2010 at 16:03 UTC | |
by Khariton (Sexton) on Nov 26, 2010 at 18:41 UTC |