WTF? Printing unicode strings

Robert Kern robert.kern at gmail.com
Thu May 18 20:35:26 EDT 2006


Ron Garret wrote:
> In article <mailman.5917.1147995329.27775.python-list at python.org>,
>  Robert Kern <robert.kern at gmail.com> wrote:
> 
>>Ron Garret wrote:
>>
>>>I'm using an OS X terminal to ssh to a Linux machine.
>>
>>Click on the "Terminal" menu, then "Window Settings...". Choose "Display" 
>>from
>>the combobox. At the bottom you will see a combobox title "Character Set
>>Encoding". Choose "Unicode (UTF-8)".
> 
> It was already set to UTF-8.

Then take a look at your LANG environment variable on your Linux machine. For
example, I have LANG=en_US.UTF-8 on my Linux machine, and I can ssh into it from
a UTF-8-configured Terminal.app and print unicode strings just fine.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco




More information about the Python-list mailing list