A Port of encodeURIComponent().
AZEncodeURIComponent
escapes all characters except the following: alphabetic, decimal digits, - _ . ! ~ * ' ( )
AZEncodeURIComponent is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "AZEncodeURIComponent"
use AZEncodeURIComponent
C Function.
AZEncodeURIComponent(@"日本語"); // -> "%E6%97%A5%E6%9C%AC%E8%AA%9E"
AZDecodeURIComponent(@"%E6%97%A5%E6%9C%AC%E8%AA%9E"); // 日本語
azu, azuciao@gmail.com
AZEncodeURIComponent is available under the MIT license. See the LICENSE file for more info.