简体   繁体   中英

WPF Chinese characters on Win XP

I have rather strange problem. I am running the same exactly WPF application on Win7 and XP platform. The application includes wpf listview in which one column presents URL's. The issue arises on XP platform where non-unicode Url's, specifically Chinese or Korean are shown as squares.

While on Win 7 the same data is shown correctly. Need to mention that other non unicode characters like Greek or German are showing correctly on both systems.

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?

I'm pretty sure the system default font changed from Tahoma to Segoe UI in the change from XP to Win 7.

(Hint you might be able to use character map to check if the font supports the correct characters)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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