Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a few legacy commands which I need to run in the terminal. Unfortunately they only work with ISO-8859-1 encoding being used.

For now I manually switch the terminal encoding, but that bugs me. On Linux I use luit, which can convert the in- and output from utf-8 to iso and vice versa (transparently for the run command).

Is there something similar for OS X, preferably available through homebrew or available as binary?


share|improve this question
up vote 2 down vote accepted

You can install XQuartz as a binary from It's the de facto standard X11 for OS X. It comes with luit and all the normal X11 stuff.

Homebrew does not have an X11 installer; it expects you tu use XQuartz, and will compile against it when it is present.

You could also use AppleScript to programmatically change your Terminal settings instead of doing it manually.

share|improve this answer

I have luit on my Mac. It was installed as part of the X11 system from XFree86. I installed it via MacPorts. Perhaps Homebrew has an X11 installer too?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.