• 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: Making a valid NSURL that contains Kanji characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Making a valid NSURL that contains Kanji characters (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: determine which NSTextView is sending to delegate?
  • Next by Date: AuthorizationExecuteWithPrivileges /sbin/SystemStarter
  • Previous by thread: Making a valid NSURL that contains Kanji characters
  • Next by thread: Undo/redo for NSTextView appearing in a sheet dialog
  • Index(es):
    • Date
    • Thread