Re: [R] non-ascii characters in TclTk

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
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
~~~~~~~~~~ - (p.dalgaard_at_biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.