[imp] problem with attachments in unicode (UTF16)

Jan Schneider jan at horde.org
Thu Mar 27 12:36:45 UTC 2008


Zitat von Otto Stolz <Otto.Stolz at uni-konstanz.de>:

>> That
>> attachment-charset field would be preset to the value resulting
>> from the procedure outlined above, but would provide an
>> opportunity to override the preset value.
>
> On second thought, I am not sure whether this is feasable:
> This would amount to reading the file, via JavaScript, immediately
> after it has been selected, and before it is uploaded. I have not
> delved enough into JavaScript to assess the feasibility of this
> approach. But if JavaScript code is used to guess the encoding
> of the text file to be uploaded, the second step proposed above
> does not apply; rather, the JavaScript code should be able to
> find the system codepage, directly.

This won't work of course, because you can't read local files with JavaScript.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the imp mailing list