Looks like the caller_profile is dumped as a multibyte string while the variables are dumped as ascii (the individual bytes). I&#39;d file a Jira report.<div><br></div><div><br></div><div><br><br><div class="gmail_quote">On 7 January 2013 15:19, Seven Du <span dir="ltr">&lt;<a href="mailto:dujinfang@gmail.com" target="_blank">dujinfang@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div>I tried to parse that in Erlang and the xmerl XML lib seems has bug on parsing the unicode identity where I can only get one character &quot;会&quot; where it should be &quot;会议142248&quot;.</div><div>

<br></div><div>But the real question is why it&#39;s different on different place in the XML with the same characters.</div>
                <div><div><br></div><div>Thanks.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- </div><div>Seven Du</div><div>Sent with <a href="http://www.sparrowmailapp.com/?sig" target="_blank">Sparrow</a></div>

<div><br></div></font></span></div><div class="HOEnZb"><div class="h5">
                 
                <p style="color:#a0a0a8">On Monday, January 7, 2013 at 8:57 PM, Cal Leeming [Simplicity Media Ltd] wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px">
                    <span><div><div>Hi Seven,<div><br></div><div>Could you elaborate more on &quot;having difficulty parsing this&quot;?</div><div><br></div><div>What are you parsing it with?</div><div>What are you trying to achieve?</div>

<div>What should be happening vs what is actually happening?</div>
<div><br>Etc.</div><div><br></div><div>Cal</div><div><br></div><div><br><div>On Mon, Jan 7, 2013 at 6:41 AM, Seven Du <span dir="ltr">&lt;<a href="mailto:dujinfang@gmail.com" target="_blank">dujinfang@gmail.com</a>&gt;</span> wrote:<br>

<blockquote type="cite"><div>
                <div>
                    Hi
                </div><div><br></div><div>We used Chinese UTF8 in chan vars and some times it&#39;s url encoded but sometimes in html entity, specifically in variables it&#39;s %xx but in caller_profile it&#39;s &amp;#xxxx, all has the same &quot;会142248&quot;.</div>


<div><br></div><div>We have some difficulty on parsing this, any comment on this?</div><div><br></div><div><div>&lt;?xml version=&quot;1.0&quot;?&gt;</div><div>&lt;cdr core-uuid=&quot;c7d83a29-c498-4fff-b2ce-621e9fc21e94&quot;&gt;</div>


<div>  &lt;variables&gt;</div><div>    &lt;origination_caller_id_name&gt;%E4%BC%9A%E8%AE%AE142248&lt;/origination_caller_id_name&gt;</div><div>    &lt;origination_caller_id_number&gt;%E4%BC%9A%E8%AE%AE142248&lt;/origination_caller_id_number&gt;</div>


<div>    &lt;conference_name&gt;%E4%BC%9A%E8%AE%AE142248&lt;/conference_name&gt;</div><div><br></div><div>    &lt;caller_profile&gt;</div><div>      &lt;caller_id_name&gt;&amp;#x4F1A;&amp;#x8BAE;142248&lt;/caller_id_name&gt;</div>


<div>      &lt;caller_id_number&gt;&amp;#x4F1A;&amp;#x8BAE;142248&lt;/caller_id_number&gt;</div></div><div><br></div>
                <div><div><br></div><div>Thanks.</div></div>
            <br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></div></blockquote></div><br></div>
</div><div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></div>

<div><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a></div>

<div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a></div>

<div><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-users mailing list</div><div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></div>

<div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div>

<div><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>
            </div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>