Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'd like to be able to render the characters as seen in this tweet:

enter image description here

I saved the tweet's JSON data and wrote a one-liner python script for testing.

python -c 'import json,urllib; print json.load(urllib.urlopen("http://c.sente.cc/BUCq/tweet.json"))["text"]'

This next image shows the output of this command on two different putty sessions, one with Bitstream Vera Sans Mono font and the other is using Courier New:

enter image description here

Next is an example of correct output (I wasn't using PuTTY):

Correct Unicode Output

The original JSON is at this link using Twitter's API.

How can I get PuTTY to display those characters?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Bitstream Vera Sans Mono does not support the Chess Symbols section of UTF8. Courier New also does not currently support the Chess Symbols section of UTF8. You'll have to find a Unicode font that supports chess symbols.

Consider DejaVu Sans Mono which is Bitsream Vera Sans Mono, just with more unicode characters (including the chess symbols). FYI, these are the unicode Codepoints for the chess symbols which will make your search for a suitable font easier.

Once you have chosen a font you'll need to make sure that PuTTY itself is set to receive UTF-8 symbols:

  1. In a PuTTy window, click the PuTTY logo in the upper left corner
  2. Click "Change settings"
  3. Choose which session you want to set a character set for in the "Saved Sessions" area
  4. Choose "Window / Translation"
  5. Choose the option "Received data assumed to be in which character set: UTF-8"
share|improve this answer
    
Bitstream Vera is, like, dead. –  Ignacio Vazquez-Abrams Apr 11 '12 at 4:56
    
Thanks, DejaVu Sans Mono works. –  Stuart Powers Apr 11 '12 at 5:26

Your Answer

 
discard

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.