Sign in Join
FPDoc Onlineexperiment

TPOFile.CharSet property

Member of TPOFilepublicIn unit Translations

Character set used for the contents of the .po file.

Declaration

pascal
property CharSet: string read FCharSet;

Description

CharSet is a read-only String property which contains the character set encoding used in the .po file or stream. Its value is captured from the 'content-type' header included in the .po file. If omitted in the .po file, the value 'UTF-8' is used. When CharSet is set to a value other than 'UTF-8', the ConvertEncoding routine is called to transcode the content in the .po file to UTF-8.

Use SetCharSet to manually override the character set used for the translation entries in the class instance.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.