Re: Terminal and UTF-8
Re: Terminal and UTF-8
- Subject: Re: Terminal and UTF-8
- From: Manfred Lippert <email@hidden>
- Date: Tue, 26 Mar 2002 15:10:37 +0100
>
WEll, if you type "d" in for example tcsh, it will also get two chars.
I understand your point and this is quite clear to me. But my point is:
Normally the program (here: tcsh) does not get any data before the user hits
the return key. An entered line is completely buffered by the terminal, so
the program hasn't to deal e.g. with Backspace if the user corrects
characters and so on. The characters are send not till the user completes
the line with the return key. And there UTF-8 should work _every_ time
(regardless of the running program in Terminal), shouldn't it? And that is
what I don't understand: In some programs this works and in some other it
does not. I want to know why!
I know that UTF-8 encoded strings may "confuse" programs. But mostly UTF-8
should not make any problems. And so I want to be able to enter UTF-8 data
where I know it is possible. But the Terminal does not let me do this in
some programs.
>
> I know that. In the actual Unicode standard, this is reduced to 4 bytes,
>
> IIRC.
>
>
Not quite correct.
In the newest version of the Unicode standard the maximum amount of a
character encoded in UTF-8 is 4 bytes (I remember in previous versions it
was 6 bytes but perhaps nobody used this ;-)). Look here:
http://www.unicode.org/versions/corrigendum1.html
Regards,
Mani
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.