<?xml version="1.0" encoding="windows-1252"?>
<node id="989973" title="Re^7: how to output file in Unicode" created="2012-08-27 08:07:55" updated="2012-08-27 08:07:55">
<type id="11">
note</type>
<author id="879250">
remiah</author>
<data>
<field name="doctext">
So, what's going on if first open, let it open with utf-8 io layer?
&lt;code&gt;
open (FH, "&gt;$outputfile") or die "$!";
&lt;/code&gt;
revise to 
&lt;code&gt;
open (OUTPUT, "&gt;:encoding(UTF-8)",$outputfile or die "$!";
&lt;/code&gt;
What is the result?

&lt;p&gt;
&lt;b&gt;update:&lt;/b&gt;&lt;br&gt;
Second question: Is that $givenname?&lt;br&gt;

&lt;/p&gt;</field>
<field name="root_node">
989377</field>
<field name="parent_node">
989965</field>
</data>
</node>
