Lazarus with FPC3.0 without UTF-8 mode

From Free Pascal wiki
Revision as of 20:07, 28 October 2015 by FTurtle (talk | contribs)
Jump to navigationJump to search

This page explains the problems and their possible solutions when using Lazarus with FPC 3.0+ but without the new UTF-8 mode. It may be needed when big parts of program code depend on system codepage.

To disable the new UTF-8 mode, -dDisableUTF8RTL must be defined in project options, "Additions and Overrides" page. There is a button "Use system encoding" to help adding it with one click. This way it affects both the project and all its dependent packages, including LazUtils which contains the relevant code.

Many of the problems are counter-intuitive. Bart has collected some reported issues under a meta-issue. It includes issues in FPC.

ToDo: Explain each problem and a solution for it ...