On Mon, 3 Jan 2005, Mike FABIAN wrote:
Filippos Papadopoulos
����Ͻޤ���: I have the following problem: I am using 9.2 with UTF-8. The problem is that when i try to view a file written in ISO-8859-7 under konsole (say via cat or less), i just see round squares (cat) or some numbers (less).
To view ISO-8859-7 encoded files while running in UTF-8 you can use
iconv -f ISO-8895-7 -t UTF-8 < file | less iconv -f ISO-8895-7 -t UTF-8 < file | cat
I usually use 'lv' instead of 'less' for that purpose because one needs to type less:
lv -Il7 -Ou8 file
Ok this works now . thanks !
Same things happen when i slogin to a Solaris 9 machine with LANG=el (defaults to 8859-7 to Solaris).
When logging in to the solaris machine, use
$ LC_ALL=el_GR.ISO-8859-7 luit ssh solaris-machine
see also 'man luit'.
This works too!
Ok i understand this because the encodings are different but this really messes up my work... I sent emails via pine so u understand that the 8859-7 characters are displayed as complete trash.
Are you using the UTF-8 support in Pine? See
http://www.suse.de/~bk/pine/FAQ.html
The pine in SuSE 9.2 contains the patches by Bernhard Kaindl and Jungshik Shin but maybe your setup is not correct?
I am using pine in Solaris not in SuSE. I am trying to build now the patched version in Solaris. Though, with luit all my problems have solved. Using the unpatched version of Pine 4.61 for Solaris9 i can see both Utf-8 and 8859-7 emails in pine and i can reply with the correct encoding to them, thanks to luit! I just type Greek in Konsole (while being ssh'ed to solaris box) and everything seems to work nice. Is there any benefit to use the patched PINE version in Solaris now ? BTW i lookes at etc/sysconfig file through YaST editor and there is an option for Automatically detect UTF-8. Has that anything to do with LUIT ? OT (just a philosophical question) Why all these conversions from UTF-8 to ISO-* and via versa dont happen automatically? Is this feasible?