/AZEncodeURIComponent

[Objective-C] A Port of encodeURIComponent().

Primary LanguageObjective-CMIT LicenseMIT

AZEncodeURIComponent

CI Status Version License Platform

A Port of encodeURIComponent().

AZEncodeURIComponent escapes all characters except the following: alphabetic, decimal digits, - _ . ! ~ * ' ( )

Installation

AZEncodeURIComponent is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "AZEncodeURIComponent"

Usage

use AZEncodeURIComponent C Function.

AZEncodeURIComponent(@"日本語"); // -> "%E6%97%A5%E6%9C%AC%E8%AA%9E"
AZDecodeURIComponent(@"%E6%97%A5%E6%9C%AC%E8%AA%9E"); // 日本語

Author

azu, azuciao@gmail.com

License

AZEncodeURIComponent is available under the MIT license. See the LICENSE file for more info.