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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

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

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Jonas Maebe-3
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
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

African Wild Dog