[imp] problem with attachments in unicode (UTF16)

Otto Stolz Otto.Stolz at uni-konstanz.de
Thu Mar 27 12:52:38 UTC 2008


Hello,

Jan Schneider schrieb:
> This won't work of course, because you can't read local files with JavaScript.

This is what I had feared.

So, I think the best solution would be:
- Provide a Charset field next to the file-selection widget
   for the user to specify the encoding of the file he chooses
   for uploading;
- if the user chooses a text file and a charset, tag the
   attachment so; optionally, warn if the uploaded file contains
   illegal data w.r.t. the charset chosen;
- if the user chooses a text file, but leaves the Charset
   default value ‘unknown’ alone, try to guess the charset,
   as discussed earlier in this thread;
- if the user chooses a non-text file, ignore the value
   of the Charset field.

Best wishes,
   Otto Stolz





More information about the imp mailing list