TXMLPropStorage does not save properties including UTF-8 characters,
Original Reporter info from Mantis: talinnell
-
Reporter name: Tristan Linnell
Original Reporter info from Mantis: talinnell
- Reporter name: Tristan Linnell
Description:
Lazarus uses UTF-8 for strings, so if, for example, you set a TEdit.Caption to a string that features UTF-8 characters, the TXMLPropStorage does not work properly when saving/restoring the TEdit's contents.
An example:
Compile the example attached.
Run it.
Close it.
The xml file created is attached here too.
On restarting the application, an exception occurs reading an invalid character at Line 4, Pos 29.
Mantis conversion info:
- Mantis ID: 19875
- Version: 0.9.30
- Fixed in version: 1.1 (SVN)
- Fixed in revision: 38347 (#25d16d33)