Open eugeneloza opened 7 years ago
Maybe recompillation of game data in https://github.com/eugeneloza/decoherence/commit/001fa8d1ab80bcfa4364d5ece0f9cf2e9a635b43 caused this? This version sees to have been working properly https://github.com/eugeneloza/decoherence/commit/f8923027fefa115019824ea3d07b511d97e11603
Now that's remarkable. I didn't change anything related to the issue (only updated CGE), but the encoding bug is not visible again. Hmmm... what might cause it?
(UPD) No, the bug is still there, and it's the fix I've returned back that fixes it.
Test needed: it might have been fixed in new read/write methods as they don't require any sort of converting.
Note that CGE had an important change around the string encoding: see https://castle-engine.io/wp/2018/02/02/playing-animations-backward-build-tool-output-dir-fast-rendering-to-tglimage-and-other-new-features/ . Since then, string
(AnsiString) is always (on all platforms) assumed to have just UTF-8 encoding. This is the same behavior as when using LCL (Lazarus components), and it should make things simpler and error-free around the encodings.
see https://github.com/castle-engine/castle-engine/issues/66 I have no idea on how this error occurs or disappears... I wonder if this depends on "exe" file or game data encoding?