Can't Read User Properties Database Edited by Japanese Client

Last reviewed: February 3, 1998
Article ID: Q164799

The information in this article applies to:

  • Microsoft Commercial Internet System version 1.0

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. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: cis
Keywords : cismps
Version : 1.0
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 3, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.