Partilhar via


Determining the Code Page of a Project File

After adding a file to a project, you can determine its code page. The method you use depends on whether the file is a table (.dbf file) or a text file.

To determine the code page of a text file

  1. Open the Project Manager.
  2. Under Other, select the text file whose code page you want to know.
  3. From the Project menu, choose Project Info.

To determine the code page of a table

When you build an application from a project, the Project Manager automatically integrates the files in the project no matter how many different code pages they have. The resulting application has the current code page.

Note   When you add a .dbf file to a project, you don't have to specify a code page for the file because Visual FoxPro automatically determines the code page from the file's code page mark. However, when you add a text file to a project, you must specify a code page for the file because Visual FoxPro cannot determine the code page automatically.

To prepare a program for use with another code page, specify the original code page when you save or compile the program on the new platform. For example, to prepare a program created with Visual FoxPro for Macintosh for use with Visual FoxPro, specify the appropriate MS-DOS code page when you save or compile the program with Visual FoxPro. If you use the COMPILE command, specify the code page using the AS clause. Alternatively, specify the code page with SET CPCOMPILE before compiling the program.

See Also

Specifying the Code Page of a Text File | Specification of Code Pages for Variables | Developing International Applications | Preventing Translation of Data in Character or Memo Fields | Code Pages Supported by Visual FoxPro