[Freeswitch-users] unicode in CDR

Seven Du dujinfang at gmail.com
Mon Jan 7 09:41:12 MSK 2013


Hi  

We used Chinese UTF8 in chan vars and some times it's url encoded but sometimes in html entity, specifically in variables it's %xx but in caller_profile it's &#xxxx, all has the same "会142248".

We have some difficulty on parsing this, any comment on this?

<?xml version="1.0"?>
<cdr core-uuid="c7d83a29-c498-4fff-b2ce-621e9fc21e94">
  <variables>
    <origination_caller_id_name>%E4%BC%9A%E8%AE%AE142248</origination_caller_id_name>
    <origination_caller_id_number>%E4%BC%9A%E8%AE%AE142248</origination_caller_id_number>
    <conference_name>%E4%BC%9A%E8%AE%AE142248</conference_name>

    <caller_profile>
      <caller_id_name>&#x4F1A;&#x8BAE;142248</caller_id_name>
      <caller_id_number>&#x4F1A;&#x8BAE;142248</caller_id_number>



Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130107/0eadcf4c/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list