From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Wed, 25 Jul 2007 10:42:38 -0700 Subject: [sup-talk] Unicode In-Reply-To: <1185377570-sup-5514@zap.electricrain.com> References: <1185377570-sup-5514@zap.electricrain.com> Message-ID: <1185385187-sup-767@south> 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