in reply to Encodings problem
If you can make your Windows system use utf8 for the file names, do that, so that the character encoding of the file names matches the character encoding of your web/cgi data.
If Windows will only use iso-8859 for file names in Greek, then your choices are limited to:
You could just set up a module of your own that implements "utf8-to-iso" versions "open", "opendir", "readir" and maybe "glob" -- you could give them names like "gr_open" or whatever, and your cgi scripts then just need to use that module and call those functions instead of the "standard" ones.
Each function in the module would handle the encoding conversions internally, taking utf8 strings as args and giving back utf8 strings as return values. That way, you don't have to keep rewriting the same encoding conversion code over and over again.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Encodings problem
by Nik (Initiate) on Oct 08, 2006 at 00:12 UTC | |
by graff (Chancellor) on Oct 09, 2006 at 01:18 UTC | |
by Nik (Initiate) on Oct 09, 2006 at 07:48 UTC | |
by graff (Chancellor) on Oct 09, 2006 at 13:49 UTC | |
by Nik (Initiate) on Oct 09, 2006 at 14:31 UTC | |
by Lu. (Hermit) on Oct 08, 2006 at 07:10 UTC |