Cross platform application UTF8 vs ANSI lazarus / 13-General ---------------------------------------------------------------------- chrnobel · 2008-06-23 20:05 Hi. I have an annoying problem. I am trying to make a cross platform application, which have to be used on both Windows and Linux computers. The application uses a MySQL database, where data is stored in ANSI format, due to the fact that it is also used by other Windows applications. My problem is that Danish characters like æøå are shown correctly (as expected as data is stored in ANSI) in Windows, but not in Linux as GTK2 uses UTF8 as default. My problem is not the application as such, as it is not a big deal to change the buttons etc. so that they are correct, but it is mandatory that the contents of the database is read and written correctly. Any good ideas? Regards Chris ---------------------------------------------------------------------- Almindor · 2008-06-24 16:21 In windows, you can use AnsiTOUtf8 to convert current windows encoding (which differs by setting/localization) to UTF8. Perhaps there's a way to use this function (or similar) with specifiying the concrete encoding (e.g: win1250).