[fpc-pascal] String Constants and Source File Code Page (Cross-platform)

Jonas Maebe jonas at freepascal.org
Fri Mar 31 20:43:15 CEST 2017


On 31/03/17 20:01, African Wild Dog wrote:
> What is the recomended way to deal with string constants in units which
> are shared in cross-platforms projects?
>
> For example, i started a project in Linux, where the source code files
> are saved in UTF-8. If i use theses files in Windows, the constants
> aren't automatically converted to the system code-page. So, i am getting
> wrong characters when i access theses constants in Windows.

http://wiki.freepascal.org/FPC_Unicode_support#Source_file_codepage
http://wiki.freepascal.org/FPC_Unicode_support#String_constants


Jonas



More information about the fpc-pascal mailing list