• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Terminal and UTF-8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Terminal and UTF-8


  • Subject: Re: Terminal and UTF-8
  • From: Manfred Lippert <email@hidden>
  • Date: Tue, 26 Mar 2002 12:46:16 +0100

> It's quite simple, an applicaton has to support UTF8 for this to
> work. Most standard unix applications simply don't do this! That is
> "works" in cat is only because cat simply echos anything raw to the
> terminal, and also takes your raw input.

But the question is: Why does _entering_ of data work well in "cat" and my
own simple "getchar" program and NOT in tcsh, mysql etc.?
For the input these programs aren't affected - are they? I think this should
all be handled in some "input buffer" of the Terminal before the data is
really sent to the program (if the user hits the "return" key).

I don't think that mysql has to support UTF-8 for now, if I can resign
correct ordering of text data. But I am not able to enter it! That's the
main problem and if I see it right, this must be a problem of the Terminal
itself. If I import the UTF-8 data from a file into mysql, all works quite
well.

> UTF8 encoding encodes single letters into 1 up to 6 (or was it even
> more) bytes.

I know that. In the actual Unicode standard, this is reduced to 4 bytes,
IIRC.

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.

  • Follow-Ups:
    • Re: Terminal and UTF-8
      • From: Max Horn <email@hidden>
References: 
 >Re: Terminal and UTF-8 (From: Max Horn <email@hidden>)

  • Prev by Date: Re: Terminal and UTF-8
  • Next by Date: Re: INFORMATION.....
  • Previous by thread: Re: Terminal and UTF-8
  • Next by thread: Re: Terminal and UTF-8
  • Index(es):
    • Date
    • Thread