如何将文件从ANSI转换为UTF-8 [英] how convert file Encoding from ANSI to UTF-8
本文介绍了如何将文件从ANSI转换为UTF-8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望从asp.net(C#)中的网页表单中读取文件并发送给客户端,但此文件包含波斯语字母和我必须将编码文件从ANSI转换为UTF-8(在代码C#中),但我不怎么样?
请指导我。
Hi,
I want that read a file from my web form in asp.net(C#) and send to client but this file contain persian letters and I must convert Encoding file from ANSI to UTF-8(in code C#) but I don''t how?
Please guide me.
推荐答案
看看
- C#中的ANSI问题,例如在C#中将字符转换为ASCII [ ^ ],请参阅我在解决方案#4中的解释
- 更改字符编码,例如如何在C#中将ascii转换为unicode? [ ^ ]
Have a look at
- The problem of "ANSI" in C#, e.g. Converting chars to ASCII in C#[^], see my explanation in solution#4
- Change character encodings, e.g. How do i convert from ascii to unicode in C#[^]
这篇关于如何将文件从ANSI转换为UTF-8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文