【发布时间】:2015-07-29 15:50:30
【问题描述】:
我试图在 WPF WebBrowser 控件的 html 字符串中显示 unicode 字符,但它似乎不起作用。我正在使用以下html:
<html>
<head>
<title/>
</head>
<body>
<div>Łuk zwykły</div>
</body>
</html>
我已将 IE Emulation 设置为 IE 11 (11000) 并设置了默认字符集:
DirectCast(CurrentWebBrowser.Document, IHTMLDocument2).defaultCharset = "UTF-8"
文件是 UTF-8 格式,但显示的是这样的:
Åuk zwykÅ‚y
【问题讨论】:
标签: wpf unicode webbrowser-control