At Compilation

General Rules

The preprocessor needs to define the incoming file encoding.

Lycia compilation tool (qbuild) retrieves the encoding information from the following sources (in order of reading):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<fglProject name="!test2" encoding="cp1251">

encoding = cp1251

<?xml version="1.0" encoding="UTF-8"?>

<fglBuildTarget xmlns="http://namespaces.querix.com/lyciaide/target" encoding="cp1251" name="import_app" type="fgl-program">

The default encoding is UTF-8.

 

File Encoding at Compilation Using Command Line

If a file is saved in a non-default encoding, the encoding should be passed to the compiler during the compilation with the -e flag.

This flag is valid for qfgl, qmsg, and qform commands and its value should correspond to the encoding name.

Example:

qfgl -e cp1251 ...

The default encoding is UTF-8.

If the encoding was not set explicitly, it is inherited from the container which can be the folder, program or project.

 

Contact Us

Privacy Policy

Copyright © 2026 Querix, (UK) Ltd.