日记首页
|
列表
|
添加日记
|
管理登陆
标题:微信账单乱码解决方法
<div class="exp-content-block" style="color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; margin-top: 40px; font-family: "Microsoft Yahei", 微软雅黑, arial, 宋体, sans-serif;"><div class="exp-content-body" style="text-align: justify; margin-top: 5px;"><ol class="exp-conent-orderlist" style="margin: 0px; padding: 0px; list-style: none; clear: both;"><li class="exp-content-list list-item-1" style="margin: 20px 0px 0px 17px; padding: 0px 0px 0px 35px; list-style: none; display: block; position: relative; min-height: 31px; border-left: 2px dotted rgb(228, 228, 228);"><div class="content-list-text"><p style="margin: 0px; padding: 0px;"><strong>方法一:以导入数据的方式打开.CSV文件。</strong></p></div></li></ol></div></div><div class="exp-content-block" style="color: rgb(51, 51, 51); font-size: 16px; line-height: 28px; margin-top: 40px; font-family: "Microsoft Yahei", 微软雅黑, arial, 宋体, sans-serif;"><div class="exp-content-body" style="text-align: justify; margin-top: 5px;"><ol class="exp-conent-orderlist" style="margin: 0px; padding: 0px; list-style: none; clear: both;"><li class="exp-content-list list-item-2" style="margin: 1px 0px 0px 17px; padding: 45px 0px 0px 35px; list-style: none; display: block; position: relative; min-height: 31px; border-left: 2px dotted rgb(228, 228, 228);"><div class="content-list-text"><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">1. 打开Excel并新建一个空白的表,然后点【数据】——>【从文本/CSV】——>然后选择你要导入的.CSV文件——>【导入】</p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">2. 然后选择【文件原始格式】中的选项(如果不知道到底是什么编码,只能一个一个试了),建议先尝试 Unicode (UTF-8) ,还是乱码再换其他的。直到预览中没有乱码为止。</p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">3. 选择【分隔符】,分隔符是.csv文件分割数据结构(行和列)的手段,一般是逗号或者空格(也可能是其他符号)。</p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">4. 选好点击【载入】即可。</p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;"><strong>总结: </strong>这个方法适合预览(阅读\查看),编辑(删/增/改)并保存的话会和原文件有区别,它们之间是一种依赖关系,事实上并不能将更改反应到原文件上,你只能另存为其他的.CSV文件。<strong>如果直接存为.xls之类的表格的话会有麻烦:移动到别的文件夹或者传给别人,打开可能会报错或者打开里面什么都没有,why?数据源不见了,自然是什么都没有了。</strong></p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">如果要进行删、增、改操作的话 不推荐使用这个方法!</p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">当然,只要不乱码,怎么保存使用那些都是小意思。</p></div><div class="content-list-media"><div class="content-list-image clearfix" style="zoom: 1; position: relative; padding: 10px 0px;"><a class="exp-image-wraper" href="http://jingyan.baidu.com/album/380abd0a21cfb61d90192c13.html?picindex=2" log="type:20150831,pos:enter_step" target="_self" style="text-decoration-line: none; color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default" alt="excel打开csv 出现乱码怎么解决" src="https://imgsa.baidu.com/exp/w=500/sign=51bb76a655ee3d6d22c687cb73176d41/37d3d539b6003af33a01b961392ac65c1038b673.jpg" style="border: 0px; display: block; max-width: 500px; overflow: hidden;"><span class="exp-album-enter-mask" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; background: rgb(51, 51, 51); opacity: 0; cursor: pointer;"></span></a></div><div class="content-list-image clearfix" style="zoom: 1; position: relative; padding: 10px 0px;"><a class="exp-image-wraper" href="http://jingyan.baidu.com/album/380abd0a21cfb61d90192c13.html?picindex=3" log="type:20150831,pos:enter_step" target="_self" style="text-decoration-line: none; color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default" alt="excel打开csv 出现乱码怎么解决" src="https://imgsa.baidu.com/exp/w=500/sign=80584da4067b02080cc93fe152d9f25f/f7246b600c33874405a64a7d5d0fd9f9d72aa054.jpg" style="border: 0px; display: block; max-width: 500px; overflow: hidden;"><span class="exp-album-enter-mask" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; background: rgb(51, 51, 51); opacity: 0; cursor: pointer;"></span></a></div><div class="content-list-image clearfix" style="zoom: 1; position: relative; padding: 10px 0px;"><a class="exp-image-wraper" href="http://jingyan.baidu.com/album/380abd0a21cfb61d90192c13.html?picindex=4" log="type:20150831,pos:enter_step" target="_self" style="text-decoration-line: none; color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default" alt="excel打开csv 出现乱码怎么解决" src="https://imgsa.baidu.com/exp/w=500/sign=2e1d9926733e6709be0045ff0bc69fb8/34fae6cd7b899e5186285f154ea7d933c8950d08.jpg" style="border: 0px; display: block; max-width: 500px; overflow: hidden;"><span class="exp-album-enter-mask" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; background: rgb(51, 51, 51); opacity: 0; cursor: pointer;"></span></a></div><div class="content-list-image clearfix" style="zoom: 1; position: relative; padding: 10px 0px;"><a class="exp-image-wraper" href="http://jingyan.baidu.com/album/380abd0a21cfb61d90192c13.html?picindex=5" log="type:20150831,pos:enter_step" target="_self" style="text-decoration-line: none; color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default" alt="excel打开csv 出现乱码怎么解决" src="https://imgsa.baidu.com/exp/w=500/sign=44a620fe37c79f3d8fe1e4308aa0cdbc/0eb30f2442a7d933450e8172a14bd11373f00108.jpg" style="border: 0px; display: block; max-width: 500px; overflow: hidden;"><span class="exp-album-enter-mask" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; background: rgb(51, 51, 51); opacity: 0; cursor: pointer;"></span></a></div><div class="content-list-image clearfix" style="zoom: 1; position: relative; padding: 10px 0px;"><a class="exp-image-wraper" href="http://jingyan.baidu.com/album/380abd0a21cfb61d90192c13.html?picindex=6" log="type:20150831,pos:enter_step" target="_self" style="text-decoration-line: none; color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default" alt="excel打开csv 出现乱码怎么解决" src="https://imgsa.baidu.com/exp/w=500/sign=c422651bca5c1038247ecec28210931c/d4628535e5dde711bd9d26f7abefce1b9d166167.jpg" style="border: 0px; display: block; max-width: 500px; overflow: hidden;"><span class="exp-album-enter-mask" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; background: rgb(51, 51, 51); opacity: 0; cursor: pointer;"></span></a></div></div></li><li class="exp-content-list list-item-3" style="margin: 1px 0px 0px 17px; padding: 45px 0px 0px 35px; list-style: none; display: block; position: relative; min-height: 31px; border-left: 2px dotted rgb(228, 228, 228);"><div class="list-icon" style="width: 32px; height: 32px; position: absolute; left: -18px; top: 43px; color: rgb(238, 255, 238); text-align: center; line-height: 32px; background: url("//exp.bdstatic.com/static/article/widget/img-baidu-com/step_ol_bg_e53cfaf.png") no-repeat; visibility: hidden;"></div><div class="content-list-text"><p style="margin: 0px; padding: 0px;"><strong>方法二:把.csv文件转码为Excel支持的编码格式</strong></p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">Excel 支持的编码格式基本和文本文档支持的一致(UTF-8 with BOM 和 GB2312)首选 UTF-8 with BOM,我们只要把.csv文件的编码格式转换成UTF-8 with BOM 就行了。</p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">怎么转?</p><p style="margin: 0px; padding: 0px;">1. 用你熟悉的文本编辑器打开乱码的.csv文件。(记得先从Excel中关掉这个文件,避免文件占用)。</p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">2. 选择编码格式:UTF8 with BOM</p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">3. 行尾序列(换行符)选择 CRLF。</p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">4. 改完,保存并关闭编辑器。</p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">5. 现在可以用Excel 打开了这个.csv文件了。不出意外的话,乱码问题已经解决。</p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">总结:这个方法算是比较完美的吧,删增改都没问题,改完可以传给其他人。推荐做法。</p></div><div class="content-list-media"><div class="content-list-image clearfix" style="zoom: 1; position: relative; padding: 10px 0px;"><a class="exp-image-wraper" href="http://jingyan.baidu.com/album/380abd0a21cfb61d90192c13.html?picindex=7" log="type:20150831,pos:enter_step" target="_self" style="text-decoration-line: none; color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default" alt="excel打开csv 出现乱码怎么解决" src="https://imgsa.baidu.com/exp/w=500/sign=c7202bfa0646f21fc9345e53c6256b31/0dd7912397dda144bdde09b3beb7d0a20df486df.jpg" style="border: 0px; display: block; max-width: 500px; overflow: hidden;"><span class="exp-album-enter-mask" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; background: rgb(51, 51, 51); opacity: 0; cursor: pointer;"></span></a></div><div class="content-list-image clearfix" style="zoom: 1; position: relative; padding: 10px 0px;"><a class="exp-image-wraper" href="http://jingyan.baidu.com/album/380abd0a21cfb61d90192c13.html?picindex=8" log="type:20150831,pos:enter_step" target="_self" style="text-decoration-line: none; color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default" alt="excel打开csv 出现乱码怎么解决" src="https://imgsa.baidu.com/exp/w=500/sign=05e7c71ad80735fa91f04eb9ae500f9f/a8773912b31bb05156e6d6293a7adab44bede0f5.jpg" style="border: 0px; display: block; max-width: 500px; overflow: hidden;"><span class="exp-album-enter-mask" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; background: rgb(51, 51, 51); opacity: 0; cursor: pointer;"></span></a></div><div class="content-list-image clearfix" style="zoom: 1; position: relative; padding: 10px 0px;"><a class="exp-image-wraper" href="http://jingyan.baidu.com/album/380abd0a21cfb61d90192c13.html?picindex=9" log="type:20150831,pos:enter_step" target="_self" style="text-decoration-line: none; color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default" alt="excel打开csv 出现乱码怎么解决" src="https://imgsa.baidu.com/exp/w=500/sign=f40b7905389b033b2c88fcda25ce3620/8c1001e93901213f982f2add58e736d12f2e9596.jpg" style="border: 0px; display: block; max-width: 500px; overflow: hidden;"><span class="exp-album-enter-mask" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; background: rgb(51, 51, 51); opacity: 0; cursor: pointer;"></span></a></div><div class="content-list-image clearfix" style="zoom: 1; position: relative; padding: 10px 0px;"><a class="exp-image-wraper" href="http://jingyan.baidu.com/album/380abd0a21cfb61d90192c13.html?picindex=10" log="type:20150831,pos:enter_step" target="_self" style="text-decoration-line: none; color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default" alt="excel打开csv 出现乱码怎么解决" src="https://imgsa.baidu.com/exp/w=500/sign=f1124a7d5d0fd9f9a0175569152cd42b/caef76094b36acaf3437f3fd70d98d1000e99cdf.jpg" style="border: 0px; display: block; max-width: 500px; overflow: hidden;"><span class="exp-album-enter-mask" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; background: rgb(51, 51, 51); opacity: 0; cursor: pointer;"></span></a></div><div class="content-list-image clearfix" style="zoom: 1; position: relative; padding: 10px 0px;"><a class="exp-image-wraper" href="http://jingyan.baidu.com/album/380abd0a21cfb61d90192c13.html?picindex=11" log="type:20150831,pos:enter_step" target="_self" style="text-decoration-line: none; color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default" alt="excel打开csv 出现乱码怎么解决" src="https://imgsa.baidu.com/exp/w=500/sign=4d2cd2baaa1ea8d38a227404a70b30cf/dcc451da81cb39dbc82b0257dc160924aa1830c3.jpg" style="border: 0px; display: block; max-width: 500px; overflow: hidden;"><span class="exp-album-enter-mask" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; background: rgb(51, 51, 51); opacity: 0; cursor: pointer;"></span></a></div><div class="content-list-image clearfix" style="zoom: 1; position: relative; padding: 10px 0px;"><a class="exp-image-wraper" href="http://jingyan.baidu.com/album/380abd0a21cfb61d90192c13.html?picindex=12" log="type:20150831,pos:enter_step" target="_self" style="text-decoration-line: none; color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default" alt="excel打开csv 出现乱码怎么解决" src="https://imgsa.baidu.com/exp/w=500/sign=6dec23c18e025aafd3327ecbcbecab8d/86d6277f9e2f070894c74f01e524b899a801f2f5.jpg" style="border: 0px; display: block; max-width: 500px; overflow: hidden;"><span class="exp-album-enter-mask" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; background: rgb(51, 51, 51); opacity: 0; cursor: pointer;"></span></a></div></div></li><li class="exp-content-list list-item-4" style="margin: 1px 0px 0px 17px; padding: 45px 0px 0px 35px; list-style: none; display: block; position: relative; min-height: 31px; border-left: 2px dotted rgb(228, 228, 228);"><div class="list-icon" style="width: 32px; height: 32px; position: absolute; left: -18px; top: 43px; color: rgb(238, 255, 238); text-align: center; line-height: 32px; background: url("//exp.bdstatic.com/static/article/widget/img-baidu-com/step_ol_bg_e53cfaf.png") no-repeat; visibility: hidden;"></div><div class="content-list-text"><p style="margin: 0px; padding: 0px;">方法三:.CSV属于普通文本,一般的文本编辑器都能打开的,如果不需要进行数据筛选处理的话,可以不用Excel打开,用文本编辑器就行了,只是可读性差而已。</p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;"><strong>经验之谈:</strong></p><p style="margin: 0px; padding: 0px;"></p><p style="margin: 0px; padding: 0px;">可能有人会建议你使用系统自带的【文本文档】软件编辑.csv文件后再用Excel打开,虽很多时候都能解决乱码的问题,但用Excel 打开之后可能就变样了,比如多了很多空行。原因在于 CRLF和LF (换行符)造成的,Windows 系统默认的是CRLF (\r\n),要改成 CRLF才行。之所以不建议用【文本文档】软件编辑是因为它能更改的地方少,而且是自动强制转换,表现为:布局错乱——该换行的地方不换行(这和有没有设置自动换行没有关系哦)。</p></div></li></ol></div></div>