Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
相当于php中的utf8_decode
我有一个字符串:"tópicos"我需要转换为"tópicos"
"tópicos"
"tópicos"
这是怎么做的?谢谢,高级。
您需要获取该字符串以其原始编码 (Windows-1252) 表示的字节,然后将这些字节读取为 UTF8:
Encoding.UTF8.GetString(Encoding.GetEncoding(1252).GetBytes("tópicos" ))