Här är ett tips som funkade bra för mig:
How do I get UTF–8 input to work correctly?
In the Terminal Inspector:
In the Emulation section, turn off the Escape non-ASCII characters option.
In the Display section, choose Unicode (UTF-8) as the Character Set Encoding.
Add the following line to your .profile:
export LC_CTYPE=en_US.UTF-8
Add the following lines to your .inputrc:
set meta-flag on
set input-meta on
set output-meta on
set convert-meta off
Apply changes by doing a source ~/.profile and a bind -f ~/.inputrc.
How do I get UTF–8 input to, you know, work correctly?
There’s an odd bug in the version of bash included with Mac OS X 10.4 that manifests itself as the LC_CTYPE enviroment variable not being set properly by export directives in .profile files. The workaround involves using the little–known environment.plist file. Thanks to Allan Odgaard for the tip!
Add a LC_CTYPE key with the value en_US.UTF-8 to the root dictionary of the ~/.MacOSX/environment.plist file.
Assuming that you don’t have that file, the easiest way to do this is to execute the following command:
echo "{ LC_CTYPE = \"en_US.UTF-8\"; }" > ~/.MacOSX/environment.plist
You could also use Property List Editor.app.
Apply changes by logging out and back in.
*
Notera att du troligen måste skapa katalogen .MacOSX för hand. Ställ dig i hemkatalogen och gör
mkdir .MacOSX
sen kan du skapa den däringa plist-filen.