Re: Unicode in URLs (was "Handling framework exceptions/errors?")

2008-06-29 Thread Stephen J. Butler
On Sun, Jun 29, 2008 at 3:10 PM, David Troy <[EMAIL PROTECTED]> wrote: > I was sort of under the impression that NSURL URLWithString: would deal with > escaping/translating the Kanji characters, but I could see how it might not. > > Is there some method I can use to break the Kanji back out into es

Re: Handling framework exceptions/errors?

2008-06-29 Thread Sherm Pendley
2008/6/29 Jim Correia <[EMAIL PROTECTED]>: > On Jun 29, 2008, at 4:17 PM, Sherm Pendley wrote: > >> On Sun, Jun 29, 2008 at 4:00 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: >>> >>> URLs can only contain ASCII >> >> Not true. Have a look at: > > NSURL's initWithString:relativeTo

Re: Handling framework exceptions/errors?

2008-06-29 Thread Sherm Pendley
On Sun, Jun 29, 2008 at 12:56 PM, David Troy <[EMAIL PROTECTED]> wrote: > > I have a situation where I am loading arbitray data from network-supplied > URLs. Sometimes the URLs contain Kanji unicode characters. When they do, > my HTTP loading mechanism (which is built around NSURL* frameworks) di

Re: Handling framework exceptions/errors?

2008-06-29 Thread Jim Correia
On Jun 29, 2008, at 4:17 PM, Sherm Pendley wrote: On Sun, Jun 29, 2008 at 4:00 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: Also, what do you mean by a URL containing Kanji characters? I suppose he means one like this: - which works correctly in Safari, btw. Safari is enco

Re: Handling framework exceptions/errors?

2008-06-29 Thread Sherm Pendley
On Sun, Jun 29, 2008 at 4:00 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > Also, what do you mean by a URL containing Kanji characters? I suppose he means one like this: - which works correctly in Safari, btw. > URLs can only contain ASCII Not true. Have a look at:

Unicode in URLs (was "Handling framework exceptions/errors?")

2008-06-29 Thread David Troy
Jens, Thanks for the help. I am being handed a URL as an NSString and am simply forwarding it to the frameworks for processing. A example URL which causes a crash is: http://foo.com/56033713/アイコン用ハング音_normal.jpg (where foo.com is something else) I didn't check to see if [NSURL URLWithStrin

Re: Handling framework exceptions/errors?

2008-06-29 Thread Jens Alfke
On 29 Jun '08, at 9:56 AM, David Troy wrote: I have a situation where I am loading arbitray data from network- supplied URLs. Sometimes the URLs contain Kanji unicode characters. When they do, my HTTP loading mechanism (which is built around NSURL* frameworks) dies with an exception deep

Re: Handling framework exceptions/errors?

2008-06-29 Thread Owen Yamauchi
On Sun, Jun 29, 2008 at 9:56 AM, David Troy <[EMAIL PROTECTED]> wrote: > I have a situation where I am loading arbitray data from network-supplied > URLs. Sometimes the URLs contain Kanji unicode characters. When they do, > my HTTP loading mechanism (which is built around NSURL* frameworks) dies

Handling framework exceptions/errors?

2008-06-29 Thread David Troy
Hey folks, I am fairly new to Cocoa development, so bear with me. I have a situation where I am loading arbitray data from network- supplied URLs. Sometimes the URLs contain Kanji unicode characters. When they do, my HTTP loading mechanism (which is built around NSURL* frameworks) dies wi