in reply to Encodings problem
Hello, is there a way to avoid this rncoding transformaions from greek-iso to utf8 and the other way around?
Erm.. Yeah. Just use UTF8 for everything in the files and 7-bit ASCII for the filenames. It'll save you a load of troubles. Also, Encode does not do anything with XML/HTML numeric entities, and you shouldn't need them if you "use utf8" in your script.
And PLEASE try to remember you shouldn't trust remote users' input. i.e. do not trust the user to enter a valid filename. I've had way too many discussions with you about that already.
update: I thought this node seemed familiar. And here, and here. If you're still having problems with the same code after 7 months, please be so kind as to point to earlier posts about it. Especially since your posts are VERY difficult to understand, so every little bit helps.
update 2: as far as I can see your big problem is NOT that your using UTF8 encoding for the filenames, it's that you're using XML numeric entities instead of proper UTF8 strings. I.e. don't use "ÿ" use "\x{ff}".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Encodings problem
by Nik (Initiate) on Oct 07, 2006 at 22:03 UTC | |
by Joost (Canon) on Oct 07, 2006 at 22:39 UTC |