11

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?

0

1 Answer 1

17

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"
2
  • Bitstream Vera is, like, dead. Apr 11, 2012 at 4:56
  • 1
    The last options is no more on Putty, could you, kindly, update the answer?
    – realtebo
    Oct 2, 2019 at 7:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .