Mattias Gaertner wrote:
That's correct. String literals in a codepage other than system are stored as UTF-16 in the binary and converted on assign. The conversion happens at runtime, so the string codepage is decided at runtime.
That's correct if the assignment is to a variable/parameter that has codepage CP_ACP. If it's an assignment to an ansistring(some_codepage) (except for rawbytestring/cp_none), then the string constant gets converted to that codepage at compile time.
Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal