c# 4.0 wpf html 解码未正确解码特殊字符 - System.Net.WebUtility.HtmlDecode
我试图解码的文本 Anasayfa > OEM Ürünleri > Ekran Kartları > SAPPHIRE
好吧,这就是我正在尝试的
string srCategory = System.Net.WebUtility.HtmlDecode(nodeCategory.InnerText.ToString()).ToString().Trim();
结果:Anasayfa > OEM �nleri > Ekran Kartlar… SAPPHIRE
那么为什么它不起作用呢?谢谢。
时间:2019-03-17 标签:c#4.0wpfapplication
The text i am trying to decode Anasayfa > OEM Ürünleri > Ekran Kartları > SAPPHIRE
Alright this is how i am trying
string srCategory = System.Net.WebUtility.HtmlDecode(nodeCategory.InnerText.ToString()).ToString().Trim();
The result: Anasayfa > OEM �r�nleri > Ekran Kartlar� > SAPPHIRE
So why it is not working ? thank you.
c# 4.0 wpf application
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这对我有用。
这是正确的,不是吗?
我当前的文化是 EN-US,什么是你的,我可以尝试在这里复制和更新,尽管我真的认为这根本不重要。
您确定这不是您想要显示的内容的显示问题吗?它不是编码字符,因此在解码时不应更改。
This works for me.
This is correct, no?
My current culture is EN-US, whats yours, I can try to duplicate and update here although I really don't think that matters here at all.
Are you certain its just not a display issue in whatever you are trying to display? Its not an encoded character so it shouldn't change upon decode.