Microsoft KB Archive/164799

= Can't Read User Properties Database Edited by Japanese Client =

Article ID: 164799

Article Last Modified on 11/5/2003

-

APPLIES TO


 * Microsoft Commercial Internet System 1.0 Service Pack 2

-



This article was previously published under Q164799





SYMPTOMS
If you are running a Japanese version of Microsoft Windows NT and you try to use Japanese characters on the Web with the Internet Locator Server (ILS), you get garbled strings back from the ILS database.



CAUSE
The problem is with the following statement:

cch = lstrlen(lpa).

Because this is a multibyte string, some characters may be 1 byte and some may be multibyte. There is no function in Microsoft Commercial Internet System (MCIS) version 1.0 that determines how many characters there are. (whether they are 1 or more than 1 byte). The lstrlen function returns the count of bytes.



RESOLUTION
The fix is to change the call from lstrlen to a call to MutliByteToWideChar because it counts characters and not bytes.

An updated .asp file that correct this problem is available in the Microsoft Commercial Internet System (MCIS) version 1.0 Service Pack 1 (SP1).



STATUS
Microsoft has confirmed this to be a problem in Microsoft Commercial Internet System version 1.0. This problem has been corrected in the latest U.S. Service Pack for Microsoft Commercial Internet System version 1.0. For information on obtaining the Service Pack, query on the following article in the Microsoft Knowledge Base:

183062 MCIS 1.0 Service Packs 1 and 2 Information

Keywords: kbbug kbfix KB164799

-

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

© Microsoft Corporation. All rights reserved.