我在Windows 8系统上安装了gnuplot (版本4.6 patchlevel 5)。我想设置UTF8编码方式。我的源文件已经保存为UTF-8编码。我的源文件名为test.txt:
set terminal pdf enhanced size 16cm,8cm font ", 10"
set output "Slozitost/Slozitost.pdf"
set encoding utf8
set grid
set datafile separator ","
set title "Složitost" font ",10"
set key left top title "Legenda" box
set xdata time
set timefmt "%d/%m/%Y"
set xrange ["03/01/2009":"20/04/2014"]
set format y "%10.0f"
#set yrange [-50:14000000]
set format x "%m/%y"
set xtics 6*30*24*60*60
#set ytics 100
set lmargin 13
set rmargin 2
set style fill transparent solid 0.5 noborder
plot 'Slozitost.csv' using 1:2 title "Slozitost" with lines linecolor rgb "blue" lw 3
我尝试通过gnuplot终端编译源代码。Gnuplot终端向我报告了以下错误:
gnuplot> load "test.txt"
^
"test.txt", line 1: invalid character »
有什么问题吗?
load "test.txt"
之前先用set encoding utf8
吗? - Miguel