Re: CFFTPCreateParsedResourceListing text encoding
Re: CFFTPCreateParsedResourceListing text encoding
- Subject: Re: CFFTPCreateParsedResourceListing text encoding
- From: Jeremy Wyld <email@hidden>
- Date: Fri, 15 Jul 2005 15:04:52 -0700
Since FTP does not specify the encoding and our implementation does
not yet support utf8, it is believed that the bytes will come
directly from the read stream and straight into the parsing routine.
If the bytes are unaltered coming out and then re-used going out to
produce another read or write stream, the bytes are all passed
straight through and unaltered. It's slightly more likely that on
those servers handing out high bits that the requests will work.
jeremy
On Jul 15, 2005, at 2:48 PM, Alexey Proskuryakov wrote:
On Fri, 15 Jul 2005 22:20:36 +0100 Frederick Cheung
<email@hidden> wrote:
I was browsing through the cfnetwork source today and i noticed
that in CFFTPCreateParsedResourceListing whenever it needs to
create a cfstring corresponding to one of the various textual
bits of info in the line it is parsing it uses the encoding
kCFStringEncodingMacRoman. Is there any particular rationale
behind this?
Officially, FTP only supports ASCII.
I would have expected that UTF8 or ISO-latin-1 would have been
better guesses.
I'd say - the Windows encoding matching user's primary language
(cp1251 in my case).
Is this just an oversight?
AFAIK, it's been reported many times, so it's probably not an
oversight. However, Windows users often name files and folders on
FTP with non-ASCII characters, and inability to access them via
Finder is humiliating :(
- WBR, Alexey Proskuryakov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden