Escaping accents in a String to create a URL
Escaping accents in a String to create a URL
- Subject: Escaping accents in a String to create a URL
- From: Alexandre Aybes <email@hidden>
- Date: Sun, 11 Aug 2002 16:34:01 -0700
Hi,
I was using OmniGroup's extensions to escape spaces and plus
signs and all those things to create urls, but then I realized
that it was not escaping accent: C) does not become é like it
should, so I decided to write a little function to do that, I
put all the string to search for in a dictionary 'C)' as key and
'é' as value.
The replace method seems to work fine, I log the values and it
seems allright (see the log below) but then when I create the
url using: [NSURL URLWithString:url] the browser opens this:
"
http://www.google.com/search?q=gh/)ration"
Log:
2002-08-11 16:12:35.762 SearchBar[1899] In string: g\\351n\\351ration
2002-08-11 16:12:35.762 SearchBar[1899] Out string: génération
Anyone knows what is going on?
Thanks a lot,
Alex.
_______________________________________________
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.