On Tue, Aug 25, 2009 at 2:50 AM, Anne van Kesteren<annevk@opera.com> wrote: > I am wondering how the caller can guess the encoding better than the user agent. Why is that so? (Apologies if this was addressed before, if so I'd appreciate a pointer.) One situation is the page asking the user. Imagine a HTML editor implemented in a web page. The user can open HTML files using <input type=file> which are then read and parsed using the File API. If the user sees that the file has weird characters in it, the page provides a drop-down containing a common set of languages. Once the user selects a language the file is reread, reparsed and redisplayed. Another use case is a site targetting only users of a particular locale (by being translated only to that locale). Such a site could make a good guess that any files provided by the user is encoded in an encoding common for that locale. / JonassReceived on Tuesday, 25 August 2009 10:30:47 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:43:16 GMT