Java Desktop System Release 3 Administration Guide

To Run a CLI Application in a Non-UTF-8 Locale

Perform the following steps:

  1. Start the Terminal application in the legacy locale. To open a Terminal window in a legacy locale, enter the following command:

    env LANG=locale LC_ALL=locale gnome-terminal --disable-factory

  2. Run the CLI application in the Terminal window.

Alternatively, perform the following steps:

  1. Start the Terminal application. To start Terminal, click Launch, then choose Applications -> Utilities -> Terminal.

  2. Choose Terminal -> Set Character Encoding, then switch the locale setting from UTF-8 to a legacy locale.

  3. Set the LANG and LC_ALL environment variables to the current shell.

  4. Run the CLI application in the Terminal window.