in reply to Re^2: Weird encoding after grabing filenames
in thread Weird encoding after grabing filenames
As you follow moritz's good advice, you have to respect the docs regarding Encode::from_to(). Here's an easy way to do the required loop in a single line of code:
The reason why the path strings are showing up fine is because they are just plain ascii characters; it's only the file names that are non-ascii, and if the web server and browser don't agree on what the encoding is for those non-ascii characters, it's just noise.Encode::from_to($_, 'ISO-8859-7', 'utf8') for (@menu_files);
(updated to fix grammar in first sentence)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Weird encoding after grabing filenames
by Nik (Initiate) on Jun 17, 2009 at 09:49 UTC | |
by ikegami (Patriarch) on Jun 17, 2009 at 14:13 UTC | |
by Nik (Initiate) on Jun 17, 2009 at 17:11 UTC | |
by ikegami (Patriarch) on Jun 17, 2009 at 17:23 UTC |