Microsoft KB Archive/295063

= Setting CodePage to UTF-8 May Generate Output with Mismatched Characters =

Article ID: 295063

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Internet Information Server 1.0
 * Microsoft Internet Information Server 2.0
 * Microsoft Internet Information Server 3.0
 * Microsoft Internet Information Server 4.0
 * Microsoft Internet Information Services 5.0

-



This article was previously published under Q295063



SYMPTOMS
If you set the code page in an ASP script to UTF-8 (either by using @CodePage=65001 or Session.CodePage=65001), the characters may be mismatched and the output does not match the expected results.



CAUSE
The encoding format of the ASP file page must be the same as the @CodePage used in the page.



RESOLUTION
Save the file with the UTF-8 encoding setting. The version of Notepad that is included in Windows 2000 or later has the option to specify an encoding format when you save a file. For example, if @CodePage is set to 65001, which indicates UTF-8, you need to save the ASP file with UTF-8 encoding. If @CodePage is set to 1252, which indicates English or German, you need to save the ASP file with ANSI encoding.

Keywords: kbprb KB295063

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.