Article ID: 259352 - View products that this article applies to.
This article was previously published under Q259352
When you use Server.HTMLEncode in the server-side script of an Active Server Pages (ASP) page that contains Unicode or double-byte character set (DBCS) data, you may find that the data gets corrupted.
The ASP Server.HTMLEncode method does not recognize Unicode and DBCS data formats and converts the data as if it were in single-byte character set (SBCS) format.
NOTE: The Server.HTMLEncode method on Windows 2000 platforms does recognize DBCS data formats. So, for Windows 2000, only Unicode data is converted as if it is in SBCS format.
Steps to Reproduce Behavior
For additional information concerning Server.HTMLEncode, click the article number below to view the article in the Microsoft Knowledge Base:
184891For more information concerning charsets and code pages, please see the following MSDN article:
(http://support.microsoft.com/kb/184891/EN-US/ )Server.HTMLEncode Garbles Extended Characters
Character Set Recognition