svg file containing non ascii character with draw on windows



Le 25/04/2013 20:48, Mario Rodriguez a ?crit :

Hi,

> With the svg terminal, this option should work:
>
> user_preamble = "set encoding locale"

This does not seem to work for me.

x1_data:[105,150,220,260,305,350,405,450,500]$
y1_data:[64.5,64,61.5,56,52,47,45,40,35]$
points:makelist([x1_data[i],y1_data[i]],i,1,length(x1_data))$
load(interpol)$
f102Cr6(x):=''(cspline(points,varname='x))$
x2_data:[105,150,220,260,320,430,540]$
y2_data:[63,62,60,57,55,50,42]$
points:makelist([x2_data[i],y2_data[i]],i,1,length(x2_data))$
f90MnCrV8(x):=''(cspline(points,varname='x))$
xmin:lmin(append(x1_data,x2_data))$
xmax:lmax(append(x1_data,x2_data))$
load(draw)$
s1:gr2d(file_name="c1",
         user_preamble = "set encoding locale",
         terminal='svg,
         dimensions=[300,300],
         font="Courier New",
         font_size=10,
         key="102Cr6",
         explicit(f102Cr6(x),x,xmin,xmax),
         key="90MnCrV8",
         color="red",
         explicit(f90MnCrV8(x),x,xmin,xmax),
         title="durete = f(temp?rature de revenu)",
         xlabel="Tr (degC)",
         ylabel="durete (HRC)"
)$
draw(s1)$

Regards

-- 
Jean-Fran?ois MAUREL
PIMECA
http://www.pimeca.com