为什么我所有的从右到左的字母都被损坏了 [英] Why all my right to left letters have been corrupted

查看:21
本文介绍了为什么我所有的从右到左的字母都被损坏了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有网络应用程序解决方案,有些页面包含阿拉伯字母,将解决方案移到另一台电脑后,所有阿拉伯字母都转换为损坏的字母,类似这样:

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 基于操作系统的当前文化 (windows-1256),正确显示这些字母.如果新系统的区域设置没有为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:

修复Windows1256

FixWindows1256

string data = File.ReadAllText(path, Encoding.GetEncoding("windows-1256"));  
File.WriteAllText(path, data, Encoding.UTF8);

这篇关于为什么我所有的从右到左的字母都被损坏了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆