convert chinese character to UTF format. RRS feed

  • Question

  • User-581461503 posted
    Im currently doing asp.net mobile web application. I want to convert a set of the chinese character to UTF 8 format. below here is the character in UTF8 format 中文 so how do display it out so that it become a real chinese character.
    Thursday, February 17, 2005 5:09 AM

All replies

  • User1625204979 posted
    Mobile Page (.aspx) files are parsed in UTF-8. All strings within the application are in Unicode. By default a mobile page's response is in UTF-8. In other words the mobile application (and asp.net web application) converts Unicode strings in UTF-8 encoding when returning page content to browsers. So if a device supports UTF-8, it should just display the characters without problem. But if it doesn't, one way you can do is to set ResponseEncoding according to the supported encoding on the device. More info can be found at the following document, section "Globalization Best Practices for ASP.NET Applications" http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconBestPracticesForGlobalApplicationDesign.asp
    Friday, February 18, 2005 7:07 PM