Re: Characters with accents in NSString
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:@"é"];
[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.