iOS URI Scheme doesn't accepts multilingual characters

154 views Asked by At

I'm new to iOS planet!

i need to set a URI scheme for my app like: myappname:// to open my app from email clients.

But now, if my app name has jpn characters or other language characters like myappname日本語://

Will it work as normal(URL querystring reads multiligual characters) or what i need to do?

Thanks for your suggestion

1

There are 1 answers

2
Arpit Kulsreshtha On

In iOS URI scheme , there is requirment of convert multi language char via encoding of URL.Let us take a example in which URL contains the other language char.

   NSString *string = @"http://test.com/teståäötest";

   NSLog(@"url with string! %@", [NSURL URLWithString:string]);
   NSLog(@"url with escaped string! %@", [NSURL URLWithString:
   [string stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]); 

Hope this helps you !