为什么我所有的左边信都被破坏了 [英] Why all my right to left letters have been corrupted
本文介绍了为什么我所有的左边信都被破坏了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有Web应用程序解决方案,一些页面包含阿拉伯语字母
,将解决方案移动到另一台电脑后,所有的阿拉伯字母都转换为损坏的字母,如下所示: / p>
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 ?
推荐答案
没有损坏。 VS.NET基于目前的OS(Windows-1256)文化,正确显示这些字母。如果新系统的区域设置
未配置为Windows-1256,您将看到上述字母。您有两个选项:
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屋!
查看全文