iOS 让Xcode打印汉字, 而不是UTF8编码
来源:互联网 发布:中国网络漫画家收入 编辑:程序博客网 时间:2024/06/03 13:30
http://blog.csdn.net/Cloud_Pro/article/details/53391656
为NSArray添加分类
- #import "NSArray+decription.h"
- @implementation NSArray (decription)
- - (NSString *)descriptionWithLocale:(id)locale
- {
- NSMutableString *str = [NSMutableString stringWithFormat:@"%lu (\n", (unsigned long)self.count];
- for (id obj in self) {
- [str appendFormat:@"\t%@, \n", obj];
- }
- [str appendString:@")"];
- return str;
- }
- @end
为NSDictionary添加分类
- #import "NSDictionary+decription.h"
- @implementation NSDictionary (decription)
- - (NSString *)descriptionWithLocale:(id)locale
- {
- NSArray *allKeys = [self allKeys];
- NSMutableString *str = [[NSMutableString alloc] initWithFormat:@"{\t\n "];
- for (NSString *key in allKeys) {
- id value= self[key];
- [str appendFormat:@"\t \"%@\" = %@,\n",key, value];
- }
- [str appendString:@"}"];
- return str;
- }
- @end
阅读全文
0 0
- iOS 让Xcode打印汉字, 而不是UTF8编码
- iOS 让Xcode打印汉字, 而不是UTF8编码
- NSURL汉字UTF8编码
- 解决iOS 打印出来的汉字为UTF8 格式
- utf8编码-汉字几字节
- 汉字UTF8编码占用几个字节
- ios utf8编码和解码
- IOS汉字与UTF8码的互换
- Elixir中将GB2312编码的汉字转为UTF8编码
- 将汉字转换成UTF8编码的URLEncode
- VC 实现 汉字 GBK(GB2312) 转化为 UTF8 编码
- VC 实现 汉字 GBK(GB2312) 转化为 UTF8 编码
- VC 实现 汉字 GBK(GB2312) 转化为 UTF8 编码
- mysql C编程-utf8编码,汉字和blob类型
- 用Java语言将utf8编码的汉字还原
- C/CPP UTF8编码转成汉字 \u7528\u6237\u4e0d
- mysql 中utf8编码存放中文汉字问题
- VC 实现 汉字 GBK(GB2312) 转化为 UTF8 编码
- 基于(ssm,websocket,mysql)开发的web聊天系统
- 十进制转换二进制
- CentOs6.5Oracle DataGuard搭建
- Opencv(Python) 教程-常用opencv 图像/视频操作函数
- 树莓派 外接显示屏 黑屏不显示
- iOS 让Xcode打印汉字, 而不是UTF8编码
- Android源码分析:录音AudioRecording
- Sublime Text
- DataTables warning (table id = '***'): Requested unknown parameter '*' from the data source for row
- Gerrit工作流程
- 网页中如何引用腾讯视频
- iOS自动化测试之自动安装ipa的资料
- 第十四章 祸起萧墙
- socket编程之UDP(windows环境下C++实现)