Hi all,

I know this sounds weird, but I now try to learn about utf-8 in order
to move to that soon, and I can't get even simple things to work.

Until now, I worked with iso8859-8. My xterm font had this enc, and
I worked mostly with vi. If I wanted to convert to utf-8, I did
iconv -f iso8859-8 -t utf-8
and it worked well.
I now try the uxterm script, which should open a utf-8 capable xterm,
and in it I run vi, enter some hebrew, all seems ok, 'cat file' shows
Hebrew, but the file doesn't seem like utf-8 when looking at the actual
bytes.

As an example: t1 was written in the uxterm, containing the four
letters Alef Bet Gimel Dalet (9 bytes total, including the newline):
<[EMAIL PROTECTED]> ~/unicode 604 % od -tu1 t1
0000000 195 160 195 161 195 162 195 163  10
t2 was written in the normal (LANG=C) xterm, same letters:
<[EMAIL PROTECTED]> ~/unicode 605 % od -tu1 t2
0000000 224 225 226 227  10

When converting it to utf-8, it's completely different from t1:
<[EMAIL PROTECTED]> ~/unicode 606 % iconv -f iso8859-8 -t utf-8 < t2 | od -tu1
0000000 215 144 215 145 215 146 215 147  10
Only the newline is the same, so it seems like something with the
Hebrew.

Just to make sure, I also do
<[EMAIL PROTECTED]> ~/unicode 608 % iconv -f iso8859-8 -t ucs-2 < t2 | od -tx2
0000000 05d0 05d1 05d2 05d3 000a
And looking at /usr/share/icu/1.8.1/data/unidata/UnicodeData.txt, I see
05D0;HEBREW LETTER ALEF;Lo;0;R;;;;;N;;;;;
so t2 is ok.
<[EMAIL PROTECTED]> ~/unicode 609 % iconv -f utf-8 -t ucs-2 < t1 | od -tx2
0000000 00e0 00e1 00e2 00e3 000a
and 00e0 is obviously not Alef (it's "LATIN SMALL LETTER A WITH GRAVE").

I made sure I had all relevant packages uptodate - libc6, xterm, vim.
all from debian-sid. Maybe I missed something, I don't know.

Any ideas?
Thanks,
-- 
Didi


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to