<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
I get the non-ASCII Characters in the graph - by&nbsp;changing the character set of the editor which is used to create the batch files for the rrdgraph command&nbsp;from ANSI to CP850.<BR>
&nbsp;<BR>
But unfortunately I am still not able to chage the language settings for the axis labels. I tried different environment variables (LANGUAGE, LANG, LOCALE) set to different values (DE, de, DE_de, de_DE, de_de) without success. The axis lables are always in english.<BR>
&nbsp;<BR>
Anyone any idea?<BR>
&nbsp;<BR>
Piet<BR>&nbsp;<BR>
<DIV>
<DIV id=SkyDrivePlaceholder></DIV>
<HR id=stopSpelling>
From: s.shipway@auckland.ac.nz<BR>To: pweischer@msn.com; rrd-users@lists.oetiker.ch<BR>Subject: RE: [rrd-users] Special language dependent characters in rrdtool runnin on Windows<BR>Date: Sun, 19 Aug 2012 21:38:23 +0000<BR><BR>
<STYLE><!--
.ExternalClass .ecxshape
{;}
--></STYLE>

<STYLE><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri","sans-serif";}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxEmailStyle17
{font-family:"Calibri","sans-serif";color:windowtext;}
.ExternalClass span.ecxEmailStyle18
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

--></STYLE>

<DIV class=ecxWordSection1>
<P class=ecxMsoNormal><SPAN style="COLOR: #1f497d">The axis labels come from the strftime library, which picks the abbreviation according to the Language settings.&nbsp; Set the environment LANG=de (I think) to make it pick German.&nbsp; However, under Windows, it should be picking this up from the internationalisation settings picked in the Windows OS?</SPAN></P>
<P class=ecxMsoNormal><SPAN style="COLOR: #1f497d">&nbsp;</SPAN></P>
<P class=ecxMsoNormal><SPAN style="COLOR: #1f497d">To get non-ASCII characters inside the graph is a bit harder, though I believe it is possible under RRDTool 1.3 and later.&nbsp; I’ve not tried this yet, but I think you need to use the –font option to specify a TrueType font that has the required characters first.&nbsp; EG:&nbsp; --font “DEFAULT:0:Courier New” will change the default font name for all text to ‘Courier New’.&nbsp; See the documentation here <A href="http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html" target=_blank>http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html</A></SPAN></P>
<P class=ecxMsoNormal><SPAN style="COLOR: #1f497d">&nbsp;</SPAN></P>
<P class=ecxMsoNormal><SPAN style="COLOR: #1f497d">Steve</SPAN></P>
<P class=ecxMsoNormal><SPAN style="COLOR: #1f497d">&nbsp;</SPAN></P>
<DIV>
<DIV style="TEXT-ALIGN: center" class=ecxMsoNormal align=center><SPAN style="COLOR: #1f497d" lang=EN-US>
<HR align=center SIZE=2 width="100%">
</SPAN></DIV>
<P class=ecxMsoNormal><B><SPAN style="COLOR: #1f497d">Steve Shipway</SPAN></B></P>
<P class=ecxMsoNormal><SPAN style="COLOR: #1f497d; FONT-SIZE: 10pt">ITS Unix Services Design Lead</SPAN></P>
<P class=ecxMsoNormal><SPAN style="COLOR: #1f497d; FONT-SIZE: 10pt">University of Auckland, New Zealand</SPAN></P>
<P class=ecxMsoNormal><SPAN style="COLOR: #1f497d; FONT-SIZE: 10pt">Floor 1, 58 Symonds Street, Auckland</SPAN></P>
<P class=ecxMsoNormal><I><SPAN style="COLOR: #595959; FONT-SIZE: 10pt">Phone: +64 (0)9 3737599 ext 86487</SPAN></I></P>
<P class=ecxMsoNormal><I><SPAN style="COLOR: #595959; FONT-SIZE: 10pt">DDI: +64 (0)9 924 6487</SPAN></I></P>
<P class=ecxMsoNormal><I><SPAN style="COLOR: #595959; FONT-SIZE: 10pt">Mobile: +64 (0)21 753 189</SPAN></I></P>
<P class=ecxMsoNormal><I><SPAN style="COLOR: #595959; FONT-SIZE: 10pt">Email: <A href="mailto:s.shipway@auckland.ac.nz"><SPAN style="COLOR: #595959">s.shipway@auckland.ac.nz</SPAN></A></SPAN></I></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: Webdings; COLOR: green; FONT-SIZE: 18pt" lang=EN-GB>P</SPAN><SPAN style="COLOR: blue" lang=EN-GB> </SPAN><SPAN style="FONT-FAMILY: 'Arial Narrow','sans-serif'; COLOR: green; FONT-SIZE: 10pt" lang=EN-GB>Please consider the environment before printing this e-mail</SPAN><SPAN style="COLOR: blue" lang=EN-GB> </SPAN><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: navy; FONT-SIZE: 7.5pt" lang=EN-GB></SPAN></P>
<P class=ecxMsoNormal><I><SPAN style="COLOR: #1f497d; FONT-SIZE: 10pt">&nbsp;</SPAN></I></P></DIV>
<P class=ecxMsoNormal><SPAN style="COLOR: #1f497d">&nbsp;</SPAN></P>
<DIV style="BORDER-BOTTOM: medium none; BORDER-LEFT: blue 1.5pt solid; PADDING-BOTTOM: 0cm; PADDING-LEFT: 4pt; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0cm">
<DIV>
<DIV style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<P class=ecxMsoNormal><B><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt" lang=EN-US>From:</SPAN></B><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt" lang=EN-US> rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch [mailto:rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] <B>On Behalf Of </B>Peter Weischer<BR><B>Sent:</B> Monday, 20 August 2012 2:20 a.m.<BR><B>To:</B> rrd-users@lists.oetiker.ch<BR><B>Subject:</B> [rrd-users] Special language dependent characters in rrdtool runnin on Windows</SPAN></P></DIV></DIV>
<P class=ecxMsoNormal>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-GB>Hello,</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-GB>&nbsp;</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-GB>If running rrdtool (1.4.5) in Windows environment, I am not able to enter special German characters (like äöüß etc.) anywhere inside a graph (like in GPRINT, TITLE, COMMENT etc.).</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-GB>&nbsp;</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-GB>In addition, I would like to configure German labels on the axis like “Mon,Die, Mit,Don, Fre, Sam, Son” instead of “Mon, Tue, Wed, Thu, Fri, Sat, Sun”.</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-GB>The documentation says, these strings depend on the current locale – but how can I set the current locale for rrdtool in a Windows environment?</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-GB>&nbsp;</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-GB>I do not use Perl – just rrdtool.exe.</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-GB>&nbsp;</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-GB>Any hint would be very much appreciated!</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-GB>&nbsp;</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-GB>Piet</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=DE>&nbsp;</SPAN></P></DIV></DIV></DIV>                                               </div></body>
</html>