PRB: 16-bit Help Window Title Has Wrong Character

Last reviewed: January 15, 1998
Article ID: Q160089
3.10    | 3.10
WINDOWS | WINDOWS NT kbprg kbprb

The information in this article applies to:

  • Microsoft Windows Software Development Kit (SDK) version 3.1

SYMPTOMS

When using HC31.exe to compile a Help project, the .hpj file is assumed to be using OEM character sets (MS-DOS code, page 850 or 437). If the title specified in the .hpj file contains characters with values higher than 127, and the .hpj file is modified using a Windows editor such as Notepad, those characters can appear to be wrong when the Help file is run.

CAUSE

In an .hpj file, under the [OPTIONS] section, the title is specified as:

   "TITLE=Help Example that contains à"

The "à" character was entered using Notepad, holding down the ALT key, and typing "0224" on the numeric keypad. When the Help file is run after being compiled using HC31.exe, you see that the Help window title reads:

   "Help Example that contains Ó"

This problem occurs because of the difference between the OEM code page (850) and the ANSI code page (1252). Value 224 is the character 'Ó' under code page 850, but it is the character 'à' under code page 1252. Because the .hpj file is assumed to be using code page 850, 'Ó' is put on the title when HC31 is processing the Help project.

RESOLUTION

If your .hpj file contains characters with values higher than 127, use an MS-DOS editor, such as Edit, to write your .hpj file.


KBCategory: kbprg kbprb
KBSubcategory: KBIntlDev
Additional reference words: 3.10 kbdsd
Keywords : kbIntlDev kbprb kbprg
Version : 3.10 | 3.10
Platform : NT WINDOWS


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: January 15, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.