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:
The pre-processor defines the encoding of the incoming file in accordance with the -e flag passed to the compiler.
If the -e flag was not passed to the compiler, the pre-processor converts its contents into Unicode treating the default system locale as the incoming file encoding.
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:
Right-click the project, program, or individual file, and select Properties from the context menu.
In the Resource tab, (Text file encoding section):
Select Default. In this case the encoding for the file(s) will be inherited from the container.
Select Other and choose the encoding from the drop-down list or enter it manually.
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.