uinocde转中文UTF-8
来源:互联网 发布:暖气片 知乎 编辑:程序博客网 时间:2024/04/30 06:35
uinocde转中文UTF-8
在 NSString + additongs.m 中写下面
-(NSString*) replaceUnicode{ NSString * TransformUnicodeString = self; NSString * tepStr1 = [TransformUnicodeString stringByReplacingOccurrencesOfString:@"\\u"withString:@"\\U"]; NSString * tepStr2 = [tepStr1 stringByReplacingOccurrencesOfString:@"\""withString:@"\\\""]; NSString * tepStr3 = [[@"\"" stringByAppendingString:tepStr2]stringByAppendingString:@"\""]; NSData * tepData = [tepStr3 dataUsingEncoding:NSUTF8StringEncoding]; NSString * axiba = [NSPropertyListSerialization propertyListWithData:tepData options:NSPropertyListMutableContainers format:NULL error:NULL]; return [axiba stringByReplacingOccurrencesOfString:@"\\r\\n"withString:@"\n"];}
0 0
- uinocde转中文UTF-8
- 中文转UTF-8
- objective-c 中文转utf-8字符串
- Android 中文字符转UTF-8编码
- Android 中文字符转UTF-8编码
- JAVA UTF-8编码中文转拼音
- 转UTF-8为字符串、中文字符串
- Android 中文字符转UTF-8编码
- iOS 中文转UTF-8编码
- Android 中文字符转UTF-8编码
- PHP中文GBK编码转UTF-8
- 中文转UTF
- UTF-8的中文问题
- UTF-8不支持中文吗?
- utf-8中文正则表达式
- 中文乱码转换utf-8
- php utf-8截取中文
- jsp中文utf-8编码
- leetcode 40. Combination Sum II
- eclipse 常用快捷键总结
- 老司机找bug的十年心路历程
- 一天一条Linux指令-mysql
- 快速简单理解i2c标准协议
- uinocde转中文UTF-8
- 关于子类是怎么继承下父类的成员与构造函数
- now
- CSS mask渐变遮罩动画
- 01-Chart-配置选项
- 近日,谷歌在微软发布补丁之前披露了Windows的严重漏洞
- 移动TFS中的解决方案的具体步骤
- 使用easyUI的Tree实现授权功能
- JS操作JSON总结