Setting the Application Locale

 

The application locale is defined by specifying the correct character set used in your source files. The actual encoding of your source files should match the encoding setting for your source files that is specified in Lycia. It is recommended that your source files use the same encoding.

 

All the source files are converted into Unicode before compilation. The pre-processor needs to define the incoming file encoding to convert it successfully into Unicode. It is done according to the following rules:

 

 

If the file is compiled in LyciaStudio, the -e flag is passed to the compiler automatically and for each individual file the -e flag will contain the encoding of this file set in file properties. If the encoding is not set explicitly, it will be inherited from the container (folder, program or project).

 

If you import a project, program, or a file, that is saved in an encoding which is different from the default encoding set in Lycia, you must specify their encoding to make sure it is passed correctly to the compiler.

 

To change the project, program, or individual file encoding which is passed to the compiler in LyciaStudio, follow these steps:

 

  1. Right-click the project, program, or individual file, and select Properties from the context menu.

  2. In the Resource tab, (Text file encoding section):

 

 

If you compile files using Lycia Command Line, make sure the -e flag has the correct encoding of source files, which is passed to the compiler. This flag is valid for qfgl, qmsg, and qform commands.

 

qfgl

qmsg

qform