• 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
Terminal and UTF-8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Terminal and UTF-8


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

Hi,

sorry if a little bit off-topic.

I am using UTF-8 as encoding in the Terminal (-> Terminal Preferences).
I am using Mac OS X in german language and german keyboard layout.
The problem: sometimes this works great, but sometimes it is not usable. :-(
Is this a bug in Mac OS X?

Examples:

- If I try to type "german umlauts" (d, v, |) directly in the shell (tcsh
running in terminal), this does NOT work. It gives cryptic characters or
"beeps".

- In the "cat" program, those characters work quite well! I can type them
and when they are repeated by cat, they are displayed properly.

- I wrote a own little program running in Terminal that reads input from
std-input via getchar(). It works perfectly and gets UTF-8 encoded strings.
Output of those UTF-8 encoded strings is also possible. (Same behaviour like
"cat".)

- In the program "mysql" it is NOT possible to write any "strange"
characters, even copy&paste does not work (same behaviour as tcsh). :-(
But if I import UTF-8 encoded strings from a file into a mysql database
table ("load data" sql command) and display the database table entries, they
are displayed properly in the terminal. So for displaying UTF-8 is used, but
I cannot enter any UTF-8 data.

Can anybody tell me why UTF-8 is not working every time in Terminal?
Is there a way to "fix" this?
BTW: I urgently need to enter UTF-8 encoded strings in mysql. Is there a way
other than importing from a file?

Thanks,
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: Markus Hitter <email@hidden>
    • Re: Terminal and UTF-8
      • From: Ondra Cada <email@hidden>
    • Re: Terminal and UTF-8
      • From: Max Horn <email@hidden>
  • Prev by Date: INFORMATION.....
  • Next by Date: Re: Terminal and UTF-8
  • Previous by thread: Re: INFORMATION.....
  • Next by thread: Re: Terminal and UTF-8
  • Index(es):
    • Date
    • Thread