• 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: Characters with accents in NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Characters with accents in NSString


  • Subject: Re: Characters with accents in NSString
  • From: email@hidden
  • Date: Sun, 8 Feb 2004 15:26:28 -0500 (EST)

Whether Cocoa will translate the charaters correctly or not, you can parse
it yourself.
NSRange aRange = [aMutableString rangeOfString:@"&#233"];

[aMutableString replaceCharactersInRange:aRange withString:@"i"];

should work. (If I understand the direction of conversion)

or am I totaly wrong myself?


> Hi,
>
> I use the + (id)stringWithContentsOfURL:(NSURL *)aURL method of
> NSString to get the source of an html page (hosted on a website). The
> problem is that this page contains charasters such as i, h, ` or g
> which are not encoded using the proper HTML code (i for i, etc). Is
> is possible to have to characters rightly interpreted in my NSString?
>
> Thanks in advance,
>
> -- Arthur
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Characters with accents in NSString (From: Arthur VIGAN <email@hidden>)

  • Prev by Date: Re: Document App or not?
  • Next by Date: Re: Drawing onto NSImageView subclass (Newbie)
  • Previous by thread: Characters with accents in NSString
  • Next by thread: Re: is there something with the switch
  • Index(es):
    • Date
    • Thread