Knodel
Knodel

Reputation: 4389

NSString&NSURL and Russian language

In my app I have an NSURL which is a file path. If a file or a folder's name contains Russian characters, instead of normal path, something like "/Users/user/Downloads/%D0%94%D0%BE%D0%BC%D0%B0%D1%88%D0%BD%D0%B5%D0%B5 %D0%B7%D0%B0%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5 %D0%BD%D0%B0 %D0%BB%D0%B5%D1%82%D0%BE.doc" is displayed.

Is there a way to fix it?

Thanks in advance!

Upvotes: 0

Views: 255

Answers (1)

Marcel Hansemann
Marcel Hansemann

Reputation: 1019

This is expected behaviour for NSURL, since file urls cannot contain special characters.

What are you trying to do with the URL? If you're using it do get a file from the system it should work. It seems like you're trying to display the path to the user, where and in what context?

Upvotes: 1

Related Questions