Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-03

String Constants and Source File Code Page (Cross-platform)

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

African Wild Dog

Hello,

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.

Regards

Jonas Maebe
to African Wild Dog
African Wild Dog wrote 7 lines
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