• 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: How would you convert a \r to its UTF-8 counterpart ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How would you convert a \r to its UTF-8 counterpart ?


  • Subject: Re: How would you convert a \r to its UTF-8 counterpart ?
  • From: Stéphane Sudre <email@hidden>
  • Date: Wed, 26 Jul 2006 21:38:32 +0200


On mercredi, juillet 26, 2006, at 12:03 AM, Shawn Erickson wrote:


On Jul 25, 2006, at 2:20 PM, Stéphane Sudre wrote:

How would you convert a \r to its UTF-8 counterpart ?

You may want to review what UTF-8 really is [1] since it has little to do directly with what you are asking.


\r is ASCII CR which is 0x0D in ASCII and in UTF-8.

Anyway it looks like you are asking about character escaping in XML (for example [2], [3]).

Ok, I need to rephrase the question to use the proper terms.

How can I save a string in a plist inside <string></string> tags so that the string is saved with character escaping for the '\r' (and probably '\n') characters?

This is done automatically for the & character.

_______________________________________________
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: How would you convert a \r to its UTF-8 counterpart ?
      • From: Michael Nickerson <email@hidden>
    • Re: How would you convert a \r to its UTF-8 counterpart ?
      • From: "stephen joseph butler" <email@hidden>
References: 
 >Re: How would you convert a \r to its UTF-8 counterpart ? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: NSTextView, style, and weird Core Data issue
  • Next by Date: Keeping an NSDocument Open
  • Previous by thread: Re: How would you convert a \r to its UTF-8 counterpart ?
  • Next by thread: Re: How would you convert a \r to its UTF-8 counterpart ?
  • Index(es):
    • Date
    • Thread