如何在一个字符串解码Unicode字符 [英] How to decode a Unicode character in a string
本文介绍了如何在一个字符串解码Unicode字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何解码此字符串'Sch\\\önen在C#中,我已经试过HttpUtility但它不给我我需要的结果,这是Schönen。
How do I decode this string 'Sch\u00f6nen' in C#, I've tried HttpUtility but it doesn't give me the results I need, which is Schönen.
你能帮助我吗
推荐答案
这做的伎俩,我在这里看到了,然后才进行删除答案。由于某种原因,固定我的问题。
This did the trick, an answer that I saw here before it was deleted for some reason fixed my problem.
System.Text.RegularExpressions.Regex.Unescape("Sch\u00f6nen");
解决它
Solved it
这篇关于如何在一个字符串解码Unicode字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文