<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-2022-jp"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Microsoft YaHei";
        panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@Microsoft YaHei";
        panose-1:2 11 5 3 2 2 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;
        mso-fareast-language:ZH-CN;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:SimSun;
        mso-fareast-language:ZH-CN;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Not 100% sure, but I think I may have had a similar problem. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I made a jira entry for this, FS-3679, which has a patch that contains a special version of fs_cli_i (on linux) that supports utf-8, but it doesn’t support command line editing and history, as the version of the lib that is used for this (libedit) does not support unicode.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I’m not sure the patch can still be applied to the current release or git head, but you can give it a try.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>??<br><b>Sent:</b> Tuesday, November 20, 2012 18:18<br><b>To:</b> freeswitch-users@lists.freeswitch.org<br><b>Subject:</b> Re: [Freeswitch-users] How to enable unicode in CLI command?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Microsoft YaHei","sans-serif"'>Thanks Giovanni for the tip.&nbsp;In Wiki it says<br>&nbsp;<br>skypopen_chat supports full utf8 chat text through&nbsp;ESL or API; yet in Lua script I create freeswitc.API() and then executestring(&quot;skypopen_chat interface1 remote_skypeid some_unicode_messsage), the utf8 message was not received correctly.<br>&nbsp;<br>Does the wiki &quot;API&quot; not referring to freeswitch.API in Lua?<br>&nbsp;<o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Microsoft YaHei","sans-serif"'>&gt; Date: Mon, 19 Nov 2012 12:19:30 +0100<br>&gt; From: <a href="mailto:gmaruzz@gmail.com">gmaruzz@gmail.com</a><br>&gt; To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>&gt; Subject: Re: [Freeswitch-users] How to enable unicode in CLI command?<br>&gt; <br>&gt; from CLI you can't.<br>&gt; You can use ESL, eg telnet to port 8021 (IIRC).<br>&gt; Anyway, look in the wiki page of gsmopen and/or skypopen for an example howto.<br>&gt; Via ESL unicode is supported.<br>&gt; -giovanni<br>&gt; <br>&gt; On 11/18/12, <span lang=ZH-CN>王瘢雹理</span> &lt;<a href="mailto:itispip-qq@hotmail.com">itispip-qq@hotmail.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; I tried to use chat / skypopen_chat from CLI console to send a message to<br>&gt; &gt; receiver, the message is written by unicode charactor (Korean or Thai), the<br>&gt; &gt; receiver cannot get correct charators;<br>&gt; &gt; Tried to call chat / skypopen_chat API from LUA/JScript, ended the same;<br>&gt; &gt; I believe Freeswitch itself support unicode, as when I use an SIP client as<br>&gt; &gt; &quot;Bria&quot; to send SIP chat message between 2 clients, unicode charactor<br>&gt; &gt; displays correctly.<br>&gt; &gt; Is it just the CLI command by design not support unicode, or I have to do<br>&gt; &gt; something in config xml?<br>&gt; &gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Sincerely,<br>&gt; <br>&gt; Giovanni Maruzzelli<br>&gt; Cell : +39-347-2665618<br>&gt; <br>&gt; _________________________________________________________________________<br>&gt; Professional FreeSWITCH Consulting Services:<br>&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>&gt; <a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>&gt; <br>&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>&gt; <a href="http://www.cudatel.com">http://www.cudatel.com</a><br>&gt; <br>&gt; Official FreeSWITCH Sites<br>&gt; <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>&gt; <a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br>&gt; <a href="http://www.cluecon.com">http://www.cluecon.com</a><br>&gt; <br>&gt; FreeSWITCH-users mailing list<br>&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>&gt; <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></span></p></div></div></div></body></html>