[Tfug] UTF in source code?

Claude Rubinson cjr at grundrisse.org
Mon Oct 4 13:39:14 MST 2010

On Sat, Oct 02, 2010 at 06:48:12AM -0700, TR wrote:
> Generally the code is limited to 8bits,  While character values can be
> unicode.
> So the code you write cannot have phi the text you work with can.

That's my understanding as well.  However, to answer the question
about writing in UTF, emacs has a few different ways of handling it
(of course).  The easiest is ucs-insert, which also provides a helpful
auto complete.

Defining a compose key should automagically give you access to a bunch
of extended sequences.  In Debian, see
/usr/share/X11/locale/$LOCALE/Compose.  I have the following in my
.xmodmaprc, which binds to the Windows "Menu" key:

  ! Menu key is Compose key
  keycode 135 = Multi_key

There's a nice little discussion of the issue at
http://canonical.org/~kragen/setting-up-keyboard.html, which may be


More information about the tfug mailing list