为什么我的左信行已损坏 [英] Why all my right to left letters have been corrupted
本文介绍了为什么我的左信行已损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网络应用解决方案,有些页包含阿拉伯字母
,移动解决方案,到另一台PC后,所有的阿拉伯字母转换为损坏的字母,这样的事情:
I have web application solutions , some pages contain arabic letters
,After moving the solutions to another pc , all the arabic letters converted to corrupted letters ,something like that :
ÈíÇäÇÊ ÇáØÇáÈ
如何解决这个问题呢?
How to fix this problem ?
推荐答案
这不是破坏。基于该操作系统(Windows-1256)目前VS.NET文化,正确地显示这些字母。如果新的系统的区域设置
未配置为Windows-1256,你会看到上面的字母。你有2个选择这里:
It's not corrupted. VS.NET based on the current culture of the OS (windows-1256), shows those letters correctly. If the regional settings
of the new system is not configured for windows-1256, you will see the above letters. You have 2 options here:
- 更改窗口的
区域设置
阿拉伯语(Windows的1256)
- Change the
regional settings
of the windows to Arabic (Windows-1256)
- 或者文件这种方式转换为UTF-8签名:
FixWindows1256
FixWindows1256
string data = File.ReadAllText(path, Encoding.GetEncoding("windows-1256"));
File.WriteAllText(path, data, Encoding.UTF8);
这篇关于为什么我的左信行已损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文