Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Unicode chars in Panther Terminal

Unicode chars in Panther Terminal
Thread Tools
Junior Member
Join Date: Nov 2003
Status: Offline
Reply With Quote
Nov 28, 2003, 11:18 AM
 
Hi all,

I am trying to get the terminal towork with international characters - like cyrillic and german äöü. So far no luck- neither reading them nor writing them is possible. Sheesh, talk about unicode support.

Any ideas?

Many thanks in advance,
nmk
     
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Nov 28, 2003, 03:30 PM
 
I use Latin-1 (aka ISO-8859-1) in the Terminal, because äöü is all I need, and it works well. I gave Unicode a quick try, but didn't get it to run properly, i.e. from the keyboard into bash or emacs, and out via cat and less.

My Latin-1 setup is as follows. In ~/.bashrc I have

export LESSCHARSET=latin1
export CHARSET=latin1

In ~/.emacs:

(set-terminal-coding-system 'iso-latin-1)
(set-keyboard-coding-system 'iso-latin-1)

The Terminal "Window Settings", Display, is set to Latin-1 too.

Seems like the UNIX world never really gets above anything else than 7-bit ASCII. I would *love* to see all tools use Unicode, but that won't probably happen anytime soon.
     
Mac Enthusiast
Join Date: Jul 2002
Status: Offline
Reply With Quote
Nov 28, 2003, 10:27 PM
 
It does not work by default (why?!) but you can tweak things to work with unicode:

Panther Terminal (bash) settings:
Emulation: escape non-ASCII chars
Display: charset encoding: UTF-8

.bash_profile:
LESS="-ERmX~"; export LESS
LESSCHARSET="utf-8"; export LESSCHARSET
PAGER="less -ERmX~"; export PAGER

.bashrc:
alias ls='ls -FGv'


with these settings, I can see Unicode chars correctly in file lists, man pages, .strings files, etc. Shell tab expansion still replaces unicode with escape sequences though.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:53 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2