[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info
Subject:    [Gnuplot-info] Unicode Input in Gnuplot's Interactive Console (Windows 7, 64bit)
From:       Stefan Kraus <kraus () mpip-mainz ! mpg ! de>
Date:       2014-12-12 14:52:28
Message-ID: 548B012C.3000808 () mpip-mainz ! mpg ! de
[Download RAW message or body]

Dear List,
is it possible to input Unicode characters into the interactive console 
window of Gnuplot running on Windows (7, 64bit) by typing with the keyboard?

System:
gnuplot 4.6.3
Windows 7, 64bit
(I change my Keyboard Layout with Alt+Shift between English, German and 
Greek.)

Ιn the interactive console (wgnuplot_pipes.exe):
Terminal type set to 'wxt'
gnuplot> show locale
         gnuplot LC_CTYPE   German_Germany.1252
         gnuplot encoding   default
         gnuplot LC_TIME    German_Germany.1252
         gnuplot LC_NUMERIC C
gnuplot> show encoding

         nominal character encoding is default
         however LC_CTYPE in current locale is German_Germany.1252

If I have a UTF8 encoded file "greek-xlabel.txt" with one line:
set xlabel 'angle α'

gnuplot> load 'greek-xlabel.txt'
gnuplot> plot sin(x)

outputs a nice graph with the x label being correct "angle α".
Copying and pasting the content of the file "greek-xlabel.txt" into the 
console:
gnuplot> set xlabel 'angle á /  °'
gnuplot> plot sin(x)
Unable to convert "angle á /  °": the sequence is invalid in the current 
charset (UTF-8), falling back to iso_8859_1

gives me an accented a (á) and an error.
φ
If I switch my keyboard layout to Greek most of the characters are not 
interpreted correctly by the gnuplot console.
alpha shows as á(accented a), theta as è (accented e), φ as ö ... and so on.

So, in general my System and gnuplot are able to deal with UTF8/Unicode. 
But for quick plots I don't want to rely on \Symbol workarounds, or load 
'greeklabels.txt" workarounds.
I guess I have to somehow change LC_CTYPE. But I couldn't find an option 
in gnuplot.
In the gnuplot console: "set encoding utf8" and "set locale 
'Greek_Greece.1253'" lead to:
gnuplot> show locale
         gnuplot LC_CTYPE   German_Germany.1252
         gnuplot encoding   utf8
         gnuplot LC_TIME    Greek_Greece.1253
         gnuplot LC_NUMERIC C

But that does not help.

Any suggestions? Is this a problem of the gnuplot console under Windows? 
Is it a problem of windows?

Thanks in advance.
	Stefan

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
gnuplot-info mailing list
gnuplot-info@lists.sourceforge.net
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic