• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFFTPCreateParsedResourceListing text encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >CFFTPCreateParsedResourceListing text encoding (From: Frederick Cheung <email@hidden>)
 >Re: CFFTPCreateParsedResourceListing text encoding (From: "Alexey Proskuryakov" <email@hidden>)

  • Prev by Date: Re: CFFTPCreateParsedResourceListing text encoding
  • Next by Date: Re: CFFTPCreateParsedResourceListing text encoding
  • Previous by thread: Re: CFFTPCreateParsedResourceListing text encoding
  • Next by thread: scanning for network printers?
  • Index(es):
    • Date
    • Thread