简体   繁体   English

Win XP上的WPF汉字

[英]WPF Chinese characters on Win XP

I have rather strange problem. 我有一个很奇怪的问题。 I am running the same exactly WPF application on Win7 and XP platform. 我在Win7和XP平台上运行相同的WPF应用程序。 The application includes wpf listview in which one column presents URL's. 该应用程序包括wpf listview,其中一列表示URL。 The issue arises on XP platform where non-unicode Url's, specifically Chinese or Korean are shown as squares. 在XP平台上会出现此问题,在该平台上,非unicode的Url(特别是中文或韩文)显示为正方形。

While on Win 7 the same data is shown correctly. 在Win 7上,相同的数据可以正确显示。 Need to mention that other non unicode characters like Greek or German are showing correctly on both systems. 需要提及的是,其他非unicode字符(例如希腊语或德语)在两个系统上均正确显示。

Does anybody knows what is going on? 有人知道发生了什么吗? Thanks 谢谢

         // Get the stream associated with the response.
        Stream receiveStream = response.GetResponseStream ();

        // Pipes the stream to a higher level stream reader with the required encoding format. 
        StreamReader readStream = new StreamReader (receiveStream, Encoding.UTF8);

It could be the font that is used to display the characters. 它可能是用于显示字符的字体。 Can you confirm that you are using the same Font on both systems? 您可以确认在两个系统上都使用相同的Font吗?

I'm pretty sure the system default font changed from Tahoma to Segoe UI in the change from XP to Win 7. 我敢肯定,在从XP到Win 7的更改中, 系统默认字体Tahoma更改为Segoe UI

(Hint you might be able to use character map to check if the font supports the correct characters) (提示您也许可以使用字符映射表来检查字体是否支持正确的字符)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM