On 10/10/2011 21:56, Jonas Maebe wrote:
2- It should have (dont know if currently has) a compiler switch to change the
default code page to UTF8 or whatever, so all variables with type String will
map to UTF8String.
I doubt that such a feature will be added. If you want that, declare your own
string type with whatever default code page you want to use and use that type
everywhere.
But that will always just push the issue to another location.
Somewhere the change from string to utf8string must be made.
In my case that is in synedit. Even if I changed every string in
synedit, it would still be used from the IDE and many user apps, with
just "string". So then the text would be corrupted at that point.
The only way to do that, is if every single fpc/lazarus user changes at
the same time.
And what happens if an app did read data from some external source
(serial port) and then wants to declare what encoding it is?
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel