我在 Windows 8 上有 gnuplot(版本 4.6 patchlevel 5)。我想设置 encofing utf8。我以 UTF8 编码保存源代码。我的源test.txt:
\n\nset terminal pdf enhanced size 16cm,8cm font ", 10"\nset output "Slozitost/Slozitost.pdf"\nset encoding utf8\nset grid\nset datafile separator ","\nset title "Slo\xc5\xbeitost" font ",10"\nset key left top title "Legenda" box\nset xdata time \nset timefmt "%d/%m/%Y"\nset xrange ["03/01/2009":"20/04/2014"]\nset format y "%10.0f"\n#set yrange [-50:14000000]\nset format x "%m/%y"\nset xtics 6*30*24*60*60\n#set ytics 100\nset lmargin 13\nset rmargin 2\nset style fill transparent solid 0.5 noborder\nplot \'Slozitost.csv\' using 1:2 title "Slozitost" with lines linecolor rgb "blue" lw …Run Code Online (Sandbox Code Playgroud)