AMKLocaleDescription 0.1.0

AMKLocaleDescription 0.1.0

Maintained by Andy Meng.



  • By
  • Andy__M

AMKLocaleDescription

CI Status Version License Platform

控制台本地化输出中文,拒绝Unicode

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

以如下代码为例:

NSString *str = @"中文ABC";
NSArray *array = @[@"中文ABC", @"中文ABC"];
NSDictionary *dict = @{@"str": str, @"array":array};
NSLog(@"%@:%@", self.title, dict);

使用该库之前系统默认的输出:

AMKLocaleDescription_Example[4032:5495582] 控制台本地化输出中文Demo:{
    array =     (
                 "\U4e2d\U6587ABC",
                 "\U4e2d\U6587ABC"
                 );
    str = "\U4e2d\U6587ABC";
}

使用该库之后的输出:

AMKLocaleDescription_Example[4045:5499534] 控制台本地化输出中文Demo:<__NSDictionaryI 0x1c027eb80> {
    array = [
             "中文ABC",
             "中文ABC"
             ]
    str = "中文ABC",
}

Requirements

Installation

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

pod 'AMKLocaleDescription'

Author

AndyM129, [email protected]

License

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