|
From: Allin C. <cot...@wf...> - 2008-01-10 19:35:51
|
On Thu, 10 Jan 2008, Ethan Merritt wrote: > On Thursday 10 January 2008 11:00, Allin Cottrell wrote: > > > > If she's using an output mode that employs UTF-8 internally, what > > happens if she does "set encoding locale"? Do the UTF-8 terminals > > then automagically get a correctly recoded version of the CP1254 > > text? > > To the best of my knowledge, none of the gnuplot terminals do > any re-encoding of the text provided by the user. The purpose > of the "set encoding" command is simply to tell the output device > what encoding the text is already in. No, see the mechanism in gp_cairo.c, which uses either the user-specified encoding, or g_get_charset() by default, to determine the source encoding, then uses g_convert() to convert to UTF-8 for use with pango. (To answer my own question!) Allin Cottrell |