in reply to Weird encoding after grabing filenames
print "Content-Type: text/html\n\n";
Always include the encoding, ie Content-Type: text/html; charset=utf-8\n\n (or let CGI generate that for you, you use it anyway).
Also you have to pass a scalar as the first argument to from_to, not an array. Read the docs for usage information.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Weird encoding after grabing filenames
by Nik (Initiate) on Jun 16, 2009 at 20:27 UTC | |
by ikegami (Patriarch) on Jun 16, 2009 at 20:53 UTC | |
by Nik (Initiate) on Jun 17, 2009 at 09:42 UTC | |
by graff (Chancellor) on Jun 16, 2009 at 20:53 UTC | |
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 | |
|