<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello,<br>
<br>
I belive it's not possible without recompile rrdtool :<br>
<br>
From source code (1.4.7) :<br>
<br>
rrd_xport.h:<br>
#define XML_ENCODING "ISO-8859-1"<br>
<br>
rrd_tool.c:<br>
if (rrd_xport<br>
(argc - 1, &argv[1], &xxsize, &start,
&end, &step, &col_cnt,<br>
&legend_v, &data) == 0) {<br>
char *old_locale = setlocale(LC_NUMERIC,NULL);<br>
setlocale(LC_NUMERIC, "C");<br>
row_cnt = (end - start) / step;<br>
ptr = data;<br>
if (json == 0){<br>
printf("<?xml version=\"1.0\"
encoding=\"%s\"?>\n\n",<br>
XML_ENCODING);<br>
printf("<%s>\n", ROOT_TAG);<br>
printf(" <%s>\n", META_TAG);<br>
}<br>
else {<br>
printf("{ about: 'RRDtool xport JSON output',\n
meta: {\n");<br>
}<br>
<br>
Yannick<br>
<br>
<br>
Le 15/07/2013 16:42, Sipter Bálint a écrit :<br>
</div>
<blockquote
cite="mid:CACzw6GJXzjuDzYZUz74kwDFNZD3M9hBwOUNZ-ukAUCMpn23b6A@mail.gmail.com"
type="cite">
<div dir="ltr">Hi.
<div>Is it possible to change the default ISO-8859-1 encoding to
utf-8 in the xported xml? I can't seem to find any information
about this. I can change it manually, but it would be great if
I could do it with the xport command.</div>
<div><br>
</div>
<div>Thank you!</div>
<div><br>
</div>
<div>Regards,</div>
<div>Bálint</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rrd-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a>
<a class="moz-txt-link-freetext" href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a>
</pre>
</blockquote>
<br>
</body>
</html>