• 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: Relative URLs, and string encodings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Relative URLs, and string encodings


  • Subject: Re: Relative URLs, and string encodings
  • From: Alex Zavatone <email@hidden>
  • Date: Mon, 24 Jul 2017 14:09:36 -0500

> On Jun 1, 2017, at 11:25 AM, Jens Alfke <email@hidden> wrote:
>
>
>> On Jun 1, 2017, at 7:44 AM, Jonathan Taylor <email@hidden>
>> wrote:
>>
>> My attempt like:
>> [NSURL URLWithString:[path
>> stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]
>> relativeToURL:relativeTo];
>
> Ah, you want NSUTF8StringEncoding instead. Generally speaking, URL encoding
> always uses UTF-8 nowadays.
>
>> This had been working ok for some time, but I have just found it to be
>> broken for filenames containing unusual characters. In particular, it fails
>> when given a filename containing a “smart quote” (not easily created
>> directly with the keyboard, but auto-generated as part of a time machine
>> backup, based on the machine name).
>
> You mean an open or close (aka “curly”) quote? They’re easily typed with
> Option-[ and Option-Shift-[.
>
> —Jens

You can also open the Keyboard menu item or the Character menu item the title
bar to find special characters.  The Keyboard System Preference allows you to
enable this.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: [webkit-dev] How to display new MIME types?
  • Next by Date: Re: Relative URLs, and string encodings
  • Previous by thread: Re: [webkit-dev] How to display new MIME types?
  • Next by thread: Re: Relative URLs, and string encodings
  • Index(es):
    • Date
    • Thread