Special characters in GTK1 lazarus / 9-Editor ---------------------------------------------------------------------- chrnobel · 2006-10-12 10:11 Hi. Using Ubuntu 6.06 / Lazarus 0.9.18 When trying to use Danish characters like æøå in a project I do have a problem which seems difficult to me to solve. Using the default characterset (UTF8) and the IDE with GTK1, I am able to write Danish characters in captions in the Object Inspector, but when trying to write them in the editor what is shown is the ISO value. If then trying to do export LANG=da_DK.ISO-8859-1 before starting Lazarus it is possible to use the characters in the editor, but now it is not possible to write them in the Object Inspector. Using GTK2 gives orther problems (the debugger doesn't work?), so at this stages it seems like I am bound to GTK1. Please any suggestions. Christian ---------------------------------------------------------------------- felipemdc · 2006-10-12 11:25 Maybe you could try exporting these three variables: export LC_CTYPE="da_DK" export LANG="da_DK" export LANGUAGE="da_DK" ---------------------------------------------------------------------- chrnobel · 2006-10-12 11:57 Hi. Unfortunately the same result. But I noticed the following message from Lazarus: Gdk-WARNING **: locale not supported by C library Christian ---------------------------------------------------------------------- chrnobel · 2006-10-12 12:55 Problem solved! It turns out, that the problem is that Ubuntu 6.06 does only support UTF8, so in order to get it to work it is first neccessary to edit   /var/lib/locales/supported.d/local and insert the following (for danish!) line:   da_DK..ISO-8859-1 ISO-8859-1 then do:   sudo dpkg-reconfigure locales This did the trick to me. Christian ---------------------------------------------------------------------- felipemdc · 2006-10-12 12:55 That message occurs with da_DK.ISO-8859-1 or with da_DK ? ---------------------------------------------------------------------- chrnobel · 2006-10-12 13:02 I made a start Lazarus script that looks like this: #! /bin/sh export LC_CTYPE=da_DK.ISO-8859-1 export LANG=da_DK.ISO-8859-1 export LANGUAGE=da_DK.ISO-8859-1 /home/cn/.lazarus/bin/lazarus Which works after solving the "Ubuntu problem", so thanks for the help, it sent me in the right direction. /Christian