FIX: Code Pages Not Supported in All OS Languages at Run TimeLast reviewed: November 11, 1997Article ID: Q175900 |
The information in this article applies to:
SYMPTOMSIn development mode, CPCURRENT() returns the correct value for a code page setting in the Config.fpw file. At run time, however, CPCURRENT() returns a value of zero (0) when the code page setting in the Config.fpw file is set to a value other than 437, 850, or 1252. This behavior also occurs when a run time application is executed on a non-English operating system and the code page is set to auto in the Config.fpw file.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Visual FoxPro 3.x and Visual FoxPro 5.x.
MORE INFORMATIONWhen Windows starts, the international settings are determined by the values in the [intl] section of the Win.ini file. FoxPro for Windows uses the Microsoft Windows international settings on start up and overrides FoxPro's default settings. A code page is a character set specific to an operating system or hardware platform. FoxPro uses code page information to translate between code pages so data is properly displayed and ordered. The manner in which data is ordered is determined by the collation sequence invoked with the SET COLLATE TO command. Use of data containing accented characters for any of the supported languages in an index necessitates setting the collation sequence to one of the alternate settings found in the topic SET COLLATE of the FoxPro Help file. Setting the collation sequence to a value other than "MACHINE" requires that "codepage=auto" be included in the Config.fpw file. FoxPro's default collation sequence is "MACHINE" and does not require a code page setting in the Config.fpw file. For additional information regarding code pages, please see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q103833 TITLE : Using Alternate Character Sets Provided by Code Pages ARTICLE-ID: Q129631 TITLE : Understanding Code Pages in Visual FoxPro ARTICLE-ID: Q136943 TITLE : Multiple-Language Implications in Visual FoxPro Steps to Reproduce Behavior
REFERENCESFoxPro Help file; search on topic: "code pages" FoxPro Help file; search on topic: "SET COLLATE"
|
Additional query words:
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |