unity3d使用litjson中文显示的问题
我们在使用litjson时它的编码方式是unicode的,所以我将json转成string输出时显示的是unicode的编码。这样我们显示或者保存中文时不是很方便。我们可以将中文的unicode转成能识别的GBK编码。
using UnityEngine;
using System.Collections.Generic;
using Utils;
using LitJson;
using System;
using System.Text.RegularExpressions; public class Script1 : MonoBehaviour
{
public void OnTestJson()
{
JsonData sData = new JsonData();
JsonData data1 = new JsonData();
JsonData data2 = new JsonData(); data1["等级"] = "";
data1["位置"] = "m=1000,x=33,y=21"; //新手村 data2["等级"] = "";
data2["位置"] = "m=1001,x=58,y=97"; //桃园镇 sData["张三"] = data1;
sData["李四"] = data2; string jsonStr = sData.ToJson(); Regex reg = new Regex(@"(?i)\\[uU]([0-9a-f]{4})");
var ss = reg.Replace(jsonStr, delegate(Match m) { return ((char)Convert.ToInt32(m.Groups[].Value, )).ToString(); }); print(ss);
}
}
显示如下
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAl8AAAAyCAIAAADtKCnnAAAaA0lEQVR4nO1d+VsTSfrPf7E/fX/Y2R2fYceZ2R3HdWDWiMYBDxB0QGAcDXcgAq54AOIxXus1CINDBwwJkHAjJMEWRBEQRA5BBOUYUE4R5M4BCYHQ3x967Gm6O50OAUSsz/N5eIq3q956q+p9u9Ld1dWs/ywL1q5dS5DY29vvX9lY+RYuClZZM+3t7ZfHpQEAAFY3WN8tC9auXUuQ2Nvb/7SysfItXBSssmba29svj0sDAACsbrBslgWff/45QWJnZ7dvZWPlW7goWGXNtLOzWx6XBgAAWN1gWZsCDMMm85iElZUVQcLhcDwWChiGCYmlAHMLl9SMpbbBkoFYgeBwOJa7KwAAAADrWxz4fH5SUpJMJktOTj569CgqhGH4W4thZWVFkHA4HHcSTp06lZqaKpfL09LSLl68SM6AAoZhQmIpwNzCJTWDDBiGYRiWy+Uikcjf399CG8jNhOfDIlvn6yTYvBTgcDiWuysAAAAA69/vwOfzRSKRs7OzjY2No6NjVFQUKodh+N8Ww8rKiiDhcDiu83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kpqXKYq6nXzRnkMp+I/Y0UwSmKSivlMsq0W3rkbv1xmrhT7nTr4oRVGHfUud0iRKtUqNzvd0zvaAxJ+he/gMibk1Q6PqmznVDC0ZHtOEXb+zPSAxKuUhk4ajaXTr4azCZ0WVv1MWoe95/Lg/fjbvuWNETAG6KsfO/49VOWcF97HiHsfT7PxuZhQ04D8cQT+g9x63XxWXfe930zVUcvdRG9nrDl1WELZpBgQEBKSbHc2iw0Hxg+oOpUan1OjuV7VjD9LoZ8fIXwuVaq3y3XUMeWtaZD5odHpGZnW+HtVMTd8pb8VulNEX2RWUVFzdodToegbG8a9VMJkkXEMl6AdXn7a8xj5RSVmLsZwotDp9ae3L3YeSaUyiVHshoVip1irV2vSCBnyGvUekBsOcC+6rmfSWnIXuoZ8pF8tqmc+ObV1D2umZ6sYeY/fA6XseP+6/pVfi16yycW90vB6cuCIqxeQGw1zLq7fa6Zmapj/r3eRpYkAd+KL7Ve1Kje714ERU8kOy1+UUNV5IKF6Y2wMCAq5WLtrsuCi0fGtaW08BfpUj4FKQ/r6ruXQ4KB6dmHQw9TUZY+Sfz8Pu7i6kdr4IvO8ICAhI5gqaHS3fmnZ4XDMza3jVN4ItSAFcCi7u7MjmQvHZVQ8Y7JVDpmZqWqXRod/cWRiLq9qZ7EcMCAj4sXEFzY6AgICAgIArhGB2BAQEBAQEJBLMjoCAgICAgESyNgAAAAAAAADMB5gdAQAAAAAAiPh/OcQILznQPW0AAAAASUVORK5CYII=" alt="" />
转载请注明出处http://www.cnblogs.com/fyluyg/p/5963052.html
unity3d使用litjson中文显示的问题的更多相关文章
- 【python之路2】CMD中执行python程序中文显示乱码
在IDLE中执行下面代码,中文显示正常: # -*- coding:utf-8 -*- st=raw_input("请输入内容")print st 但在CMD中执行e:\hello ...
- Linux中文显示乱码?如何设置centos显示中文
Linux中文显示乱码?如何设置centos显示中文 怎么设置Linux系统中文语言,这是很多小伙伴在开始使用Linux的时候,都会遇到一个问题,就是终端输入命令回显的时候中文显示乱码.出现这个情况一 ...
- [django]Django站点admin支持中文显示和输入设置
正文: Django站点admin支持中文输入设置,操作如下: 1 需要确定的你的数据库的client客户端和服务端的编码设置为utf-8,如果不是,请将其设置成utf-8编码,我采用mysql,详情 ...
- Xshell个性化设置,解决Xshell遇到中文显示乱码的问题
在同事的推荐下,今天开始使用Xshell连接Linux,但是发现一个“遇到中文显示乱码”的问题, 同事的解决方案如下: 平常给Linux上传文件之前,先把文件转换成UTF-8编码形式, 然后设置Xsh ...
- python中matplotlib画折线图实例(坐标轴数字、字符串混搭及标题中文显示)
最近在用python中的matplotlib画折线图,遇到了坐标轴 "数字+刻度" 混合显示.标题中文显示.批量处理等诸多问题.通过学习解决了,来记录下.如有错误或不足之处,望请指 ...
- (转)sqlplus中文显示乱码的问题
sqlplus中文显示乱码的问题 2010-07-19 11:33:26 分类: LINUX 在windows下sqlplus完全正常,可是到linux下,sqlplus中文显示就出问题了,总是显示“ ...
- wkhtmltopdf中文显示空白或者乱码方框
中文乱码或者空白解决方法 如果wkhtmltopdf中文显示空白或者乱码方框 打开windows c:\Windows\fonts\simsun.ttc拷贝到linux服务器/usr/share/fo ...
- 在WCF数据访问中使用缓存提高Winform字段中文显示速度
在我们开发基于WCF访问方式的Winform程序的时候,一般情况下需要对界面显示的字段进行中文显示的解析.如果是硬编码进行中文显示,那么除了不方便调整及代码臃肿外,性能上没有什么问题,但是不建议这样处 ...
- GB2312、GBK和UTF-8三种编码以及QT中文显示乱码问题
1.GB2312.GBK和UTF-8三种编码的简要说明 GB2312.GBK和UTF-8都是一种字符编码,除此之外,还有好多字符编码.只是对于我们中国人的应用来说,用这三种编码 比较多.简单的说一下, ...
随机推荐
- iOS基础 - 触摸事件&手势识别
================================================================== 一.触摸事件&手势识别 1> 4个触摸事件,针对视图 ...
- 长乐集训2012.7.11 happy(指针技巧的运用)
题1 Noip的快乐 (happy.pas/c/cpp) [问题描述] 终于到了一年一度的Noip比赛了,多么令人期待和兴奋的一天!其实,人们最高兴的还不是遇见老朋友,而是结交新朋友.可是结交新的朋 ...
- jQuery插件综合应用1
jQuery插件综合应用(一)注册 一.介绍 注册和登录是每个稍微有点规模的网站就应该有的功能.登陆功能与注册功能类似,也比注册功能要简单些.所以本文就以注册来说明jQuery插件的应用. jQu ...
- c语言:将二进制数按位输出
问题: 1.输入int 20,其二进制为10100,按位输出10100; 2.或者将1转化为“+”,0转化为“-”,输出就是” + - + - - “; int biTofh(int bi,int l ...
- struts2讲义----建立一个struts2工程
建立一个Struts2 工程 Ø 1在MyEclipse中新建web工程 Ø 2在struts-2.2.1.1-all\struts-2.2.1.1解压struts2-blank.war( 最基础的示 ...
- .NET Mvc Razor
.NET Mvc Razor也可以这样玩! 忙碌的工作总是占据了生活的大部分的时间!所以我的博客到现在还是寥寥的几篇文章,技术是用来分享和学习的,对技术有不同的见解,大家都可以分享下,如果如下文章有问 ...
- 整合MVVM框架(Prism)
整合MVVM框架(Prism) 我们基础的框架已经搭建起来了,现在整合MVVM框架Prism,在ViewModel做一些逻辑处理,真正把界面设计分离出来. 这样方便我们系统开发分工合作,同时提高系统可 ...
- 在WebStorm中集成Karma+jasmine进行前端单元测试
在WebStorm中集成Karma+jasmine进行前端单元测试 前言 好久没有写博了,主要还是太懒=.=,有点时间都去带娃.看书了,今天给大家分享一个原创的小东西,如果大家对TDD或者BDD有兴趣 ...
- 依赖注入(DI)和Ninject
[ASP.NET MVC 小牛之路]04 - 依赖注入(DI)和Ninject 本文目录: 1.为什么需要依赖注入 2.什么是依赖注入 3.使用NuGet安装库 4.使用Ninject的一般步骤 5. ...
- Window Service 计划任务
在ASP.NET中创建计划任务,就我个人而言,用过两种方式,一种是用SQL Server创建,把写好的SSIS包导入SQL Server创建的任务中,设置好时间让它去执行.还有一种就是利用window ...