[sup-talk] Unicode

William Morgan wmorgan-sup at masanjin.net
Wed Jul 25 13:42:38 EDT 2007


Excerpts from Dan Sully's message of Wed Jul 25 08:34:29 -0700 2007:
> I know Unicode support in Ruby is.. lacking. But is there anything I
> can do to prevent the dreaded unicode question marks (often followed
> by a tilde), which totally destroy the curses layout. 

Here's what has worked for me:

1. Use gnome-terminal
2. set LANG=en_US.UTF-8

Then, somehow, magically, using ncurses to display utf8 characters just
works. Well, I haven't tried wide characters, but accented characters
work.

> I see that iconv is being used in sup, but I'm not sure when/why.

Sup uses iconv to convert messages (and individual headers) marked as
in specific encodings to your local encoding, as determined by LC_CTYPE
and LANG environment variables.

What *doesn't* work right now is calculating the lengths of unicode
strings, so the display is a little screwed up for characters that take
more than one utf-8 byte. But still usable.

-- 
William <wmorgan-sup at masanjin.net>


More information about the sup-talk mailing list