problem with accents|tungstene|tungstene@free.fr|1362238702|tungstene|xx|0|88.167.184.18|hi,<br />I m french, and i use rivescript. But in french lot of words  need accents as é è ê à and ç, but rive script dont match this caracteres. How can i do please ?<br />thanks||1362238797|tungstene|
Re: problem with accents|Kirsle|casey@cuvou.net|1362253531|Kirsle|xx|0|76.168.88.125|It's on my to-do list to update the RiveScript libs to allow UTF-8/non-ASCII characters in triggers. Which programming language are you using? I'll focus on that one first.||||
Re: problem with accents|tungstene|tungstene@free.fr|1362309682|tungstene|xx|0|88.167.184.18|[b]I resolut the problem by modifying the chat.html<br /><br />must be added :[/b]<br />&lt;input type=&quot;hidden&quot; name=&quot;input&quot; id=&quot;inputID&quot; /&gt; <br /><br />[b]in the form<br />below the line  &nbsp; &nbsp; &nbsp;&lt;input type=&quot;text&quot; size=&quot;40&quot; name=&quot;message&quot; id=&quot;message&quot; autocomplete=&quot;on&quot; disabled placeholder=&quot;Please wait... loading...&quot;&gt;<br /><br />then modify the function sendMessage () as :[/b]<br /><br />function sendMessage () <br /><br />&#123;<br />        // debut code remplacement accents <br />        newinput = document.forms['formAdmID'].elements['message'].value;<br /> &nbsp; &nbsp; &nbsp;newinput = newinput.replace(/[éèêë]/gi, &quot;e&quot;);<br /> &nbsp; &nbsp; &nbsp;newinput = newinput.replace(/[àâä]/gi, &quot;a&quot;);<br /> &nbsp; &nbsp; &nbsp;newinput = newinput.replace(/[ïî]/gi, &quot;i&quot;);<br /> &nbsp; &nbsp; &nbsp;newinput = newinput.replace(/[üûù]/gi, &quot;u&quot;);<br /> &nbsp; &nbsp; &nbsp;newinput = newinput.replace(/[öô]/gi, &quot;o&quot;);<br />        newinput = newinput.replace(/[ç]/gi, &quot;c&quot;);<br />        newinput = newinput.replace(/[']/gi, &quot; &quot;);<br />        var messageremplace = newinput;<br />        //alert(test); //permet de deboguer le changement d'accent<br />        <br /> &nbsp; &nbsp; &nbsp;//var text = $(&quot;#message&quot;).val(); // ligne d'origine du programe<br />        var text = messageremplace; // ligne a ajouter<br /> &nbsp; &nbsp; &nbsp;$(&quot;#message&quot;).val(&quot;&quot;);<br /> &nbsp; &nbsp; &nbsp;$(&quot;#dialogue&quot;).append(&quot;&lt;div&gt;&lt;span class='user'&gt;You:&lt;/span&gt; &quot; + text + &quot;&lt;/div&gt;&quot;);<br /> &nbsp; &nbsp; &nbsp;try &#123;<br /> &nbsp; &nbsp; &nbsp;var reply = rs.reply(&quot;soandso&quot;, text);<br /> &nbsp; &nbsp; &nbsp;reply = reply.replace(/\n/g, &quot;&lt;br&gt;&quot;);<br /> &nbsp; &nbsp; &nbsp;$(&quot;#dialogue&quot;).append(&quot;&lt;div&gt;&lt;span class='bot'&gt;Bot:&lt;/span&gt; &quot; + reply + &quot;&lt;/div&gt;&quot;);<br /> &nbsp; &nbsp; &nbsp;$(&quot;#dialogue&quot;).animate(&#123; scrollTop: $(&quot;#dialogue&quot;).height() &#125;, 1000);<br /> &nbsp; &nbsp; &nbsp;&#125; catch(e) &#123;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;window.alert(e.message + &quot;\n&quot; + e.line);<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;console.log(e);<br /> &nbsp; &nbsp; &nbsp;&#125;<br /><br /> &nbsp; &nbsp; &nbsp;return false;<br />&#125;<br /><br /><br />[b]home with firefox, it works. [/b]<br />||||
Re: problem with accents|tungstene|tungstene@free.fr|1362853899|tungstene|xx|0|88.167.184.18|i suggest add to : <br /> newinput = newinput.replace(/[-]/gi, &quot; &quot;);<br /> :)||||
Re: problem with accents|tungstene|tungstene@free.fr|1362905359|tungstene|xx|0|88.167.184.18|[b]Sorry, i forgot one modify line ! [/b]<br /><br />&lt;form id=&quot;formAdmID&quot; method=&quot;post&quot; onSubmit=&quot;return sendMessage()&quot;&gt;<br /><br />[b]it done for integral form : [/b]<br /><br />&lt;form id=&quot;formAdmID&quot; method=&quot;post&quot; onSubmit=&quot;return sendMessage()&quot;&gt;<br /> &nbsp; &nbsp; &nbsp;&lt;fieldset&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;legend&gt;Send a Message&lt;/legend&gt;<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;table border=&quot;0&quot; cellspacing=&quot;4&quot; cellpadding=&quot;4&quot; width=&quot;100%&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td align=&quot;left&quot; valign=&quot;middle&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;text&quot; size=&quot;40&quot; name=&quot;message&quot; id=&quot;message&quot; autocomplete=&quot;on&quot; disabled placeholder=&quot;Please wait... loading...&quot;&gt;<br />                                &lt;input type=&quot;hidden&quot; name=&quot;input&quot; id=&quot;inputID&quot; /&gt; &lt;!-- input pour remplacer les accents --&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/td&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td width=&quot;10&quot; align=&quot;center&quot; valign=&quot;middle&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;submit&quot; value=&quot;Send&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/td&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/table&gt;<br /> &nbsp; &nbsp; &nbsp;&lt;/fieldset&gt;<br />&lt;/form&gt;<br />||1362905608|tungstene|
