• 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: Displaying Swedish Characters?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying Swedish Characters?


  • Subject: Re: Displaying Swedish Characters?
  • From: Jerry LeVan <email@hidden>
  • Date: Fri, 31 Dec 2004 17:37:17 -0500

Hmmm, is there a reasonable fix?


Jerry On Dec 31, 2004, at 2:27 PM, Clark Cox wrote:

On Fri, 31 Dec 2004 14:01:46 -0500, Ken Ferry <email@hidden> wrote:
On Thu, 30 Dec 2004 21:27:46 -0500, Jerry LeVan <email@hidden> wrote:
I have a Latin1 database, fields containing swedish characters , like
the name "Sölve" appears as empty strings >in the result list.


The problem might be here:

return [NSString stringWithUTF8String:value];

UTF-8 agrees with Latin-1 on the subset of characters covered by ASCII, but not on all of Latin-1. There's a good chance that the Latin-1 encoding of "Sölve" is not a valid UTF-8 encoded string at all.

Not just a good chance, but a solid guarantee. Any time a single non-ASCII appears (i.e. without any other non-ASCII octets directly following or preceding it) in a stream of octets, it is not valid UTF-8.

--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Displaying Swedish Characters?
      • From: Clark Cox <email@hidden>
References: 
 >Displaying Swedish Characters? (From: Jerry LeVan <email@hidden>)
 >Re: Displaying Swedish Characters? (From: Ken Ferry <email@hidden>)
 >Re: Displaying Swedish Characters? (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: float & double scanner question
  • Next by Date: Re: Arrow keyEquivalent in InterfaceBuilder
  • Previous by thread: Re: Displaying Swedish Characters?
  • Next by thread: Re: Displaying Swedish Characters?
  • Index(es):
    • Date
    • Thread