Re: Making a valid NSURL that contains Kanji characters
Re: Making a valid NSURL that contains Kanji characters
- Subject: Re: Making a valid NSURL that contains Kanji characters
- From: Hiroshi Saito <email@hidden>
- Date: Sun, 7 Nov 2004 00:13:43 +0900
Hi Jesus,
How about this Carbon function?
CFStringRef CFURLCreateStringByAddingPercentEscapes (
CFAllocatorRef allocator,
CFStringRef originalString,
CFStringRef charactersToLeaveUnescaped,
CFStringRef legalURLCharactersToBeEscaped,
CFStringEncoding encoding
);
I have never used it yet, but I guess it helps you.
(FYI, CFStringRef and NSString can cast each other without any
function.)
--
Hiroshi Saito
On Nov 6, 2004, at 8:12, Jesus De Meyer wrote:
Hi,
I noticed that when I make a string that contains both roman and kanji
characters, [NSURL URLWithString] returns nil.
However, I found a solution using [NSString
stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
Is this the only solution or am I missing something. Also, that method
is only for Panther, and that's ok, because my app only runs on
panther, but what would be the solution if I were to develop for
Jaguar?
Thanks in advance _______________________________________________
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
_______________________________________________
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