W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

Re: [FileAPI] File.name

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 11 Nov 2009 11:48:55 +0100
To: "Maciej Stachowiak" <mjs@apple.com>
Cc: "WebApps WG" <public-webapps@w3.org>
Message-ID: <op.u278btn864w2qv@anne-van-kesterens-macbook.local>
On Wed, 11 Nov 2009 02:39:46 +0100, Maciej Stachowiak <mjs@apple.com>  
wrote:
> On Nov 10, 2009, at 5:29 PM, Anne van Kesteren wrote:
>
>> "The name of the file as a UTF8-encoded string." A DOMString is not
>> UTF-8-encoded. I think this should just say "Returns the filename".
>> It is not more complicated than that as far as I can tell.
>
> There are some filesystems on (mostly legacy) Unix-like systems where
> filenames are stored in some other encoding than UTF-8, and in some
> cases the encoding is not even known. For example, in Japan there
> exist NFS fileservers where the filenames are encoded in Shift-JIS. In
> cases like that it's a little more complicated than "Return the
> filename" but it's probably ok to just leave it to the UA or the
> operating system to figure out how to deal. Interpreting it as UTF-8
> is likely to be a poor choice in such cases.

Also, that would you mean you'd have to decode it with UTF-8 as encoding,  
not encode.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Wednesday, 11 November 2009 10:49:34 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:35 GMT