Re: [R] non-ascii characters in TclTk

From: Peter Dalgaard <>
Date: Sun, 30 Dec 2007 11:09:46 +0100

Charles Annis, P.E. wrote:
> Greetings, R-Helpers:
> A year ago or so I was able to use the non-ascii character โ in my TclTk.
> (You can type it on Windows as <alt>0226) I can use something like
> expression(hat(a)) elsewhere in R, but I seem to be doing something wrong
> when I try that syntax in TclTk. The widget will run but it displays
> something frightening like R-call_lang 019C8480 019A7724 where I expected to
> see โ.
Nothing frightening or unexpectable about that.... If you pass an expression, Tcl will think it is a callback. You shouldn't expect plotmath features to work outside of plots.

> Can anyone suggest how to use the a with caret in a TclTk widget?
Can't you just type it in inside a string? Otherwise, Unicode escapes like "\u00e2" should do it.

   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (                  FAX: (+45) 35327907

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 30 Dec 2007 - 10:14:59 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 30 Dec 2007 - 13:30:21 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.