I invoked 'xterm -lc' then 'setxkbmap -layout "us,cz" -option "grp:shifts_toggle,grp_led:scroll"'.
$ beaver entered some text in cz and save with name 'file'. $ file file file: UTF-8 Unicode text, with no line terminators $ beaver file (no error during opening) Now I can see text, but diacritic characters are right of letters instead of above them and one letter 'k' is even missing. gvim shows garbage. It's same (output with badly placed diacritic) for these options too : $ luit -v -encoding 'UTF-8' beaver file UTF-8, non-ISO-2022 encoding. $ luit -v -encoding 'ISO 8859-2' beaver file G0 is ASCII, G1 is Unknown (94), G2 is ISO 8859-2, G3 is Unknown (94). GL is G0, GR is G2. Maybe I'm missing something obvious or I'm interpreting info from man pages in a bad way. On Thu, Jan 14, 2010 at 3:50 AM, J.C. Roberts <list-...@designtools.org> wrote: > On Wed, 13 Jan 2010 12:31:36 +0100 Tomas Bodzar > <tomas.bod...@gmail.com> wrote: > >> Hi all, >> >> if I open beaver from xterm and enter some text then I can see >> this(after save of file) : >> >> $ file some_file >> some_file: ASCII text, with no line terminators >> >> if I switch to cz keyboard then I can see this : >> >> $ file cz_file >> cz_file: UTF-8 Unicode text, with no line terminators >> >> Same problem after '$ xterm -u8 -e luit'. For switching of keyboard I >> use 'setxkbmap -layout "us,cz" -option >> "grp:shifts_toggle,grp_led:scroll"'. When I try to open file with some >> cz text then I can see this error from beaver : >> >> Document "cz_file" cannont be opened. >> This file is not valid UTF-8 and will not be displayed. >> >> So how can I check what's wrong? >> >> Thx >> > > Does `xterm -lc` work? > > --