PRB: Server.HTMLEncode Corrupts Unicode Characters and Double-Byte Character Set Data (259352)
The information in this article applies to:
- Microsoft Active Server Pages 2.0, when used with:
- Microsoft Internet Information Server 4.0
- Microsoft Internet Information Services 5.0
This article was previously published under Q259352 SYMPTOMS
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.
CAUSE
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.
STATUS
This behavior is by design.
REFERENCESFor additional information concerning Server.HTMLEncode, click the article number below
to view the article in the Microsoft Knowledge Base:
184891 Server.HTMLEncode Garbles Extended Characters
For more information concerning charsets and code pages, please see the following MSDN article:
Modification Type: | Major | Last Reviewed: | 11/17/2003 |
---|
Keywords: | kbLocalization kbprb KB259352 |
---|
|