<div dir="ltr"><div><div><div><div>Thank you Stefan and Andrew,<br><br></div>I just change this line in the registry file:<br><div style="margin-left:40px">##:: charset = &quot;latin1&quot;    # character encoding of corpus data<br></div></div>to<br><div style="margin-left:40px">##:: charset = &quot;utf8&quot;    # character encoding of corpus data<br><br></div>and it works well: <a href="http://imgur.com/GvEnB11">http://imgur.com/GvEnB11</a><br><br></div><div>Like I said days ago, they use this script to encode corpus: <a href="http://pastebin.com/xTEHaDdm">http://pastebin.com/xTEHaDdm</a><br></div><div>When the script calls the CWB::Encoder don&#39;t tell it to use utf8 and the encoder uses Latin1 by default:<br><div style="margin-left:40px"> -c &lt;charset&gt; specify corpus character set (instead of the default latin1)<br></div></div><div><br></div>Now my doubts are...<br></div><div>1- Better modify the script to call the encoder with &quot;-c utf8&quot;?<br></div><div>2- How to install a new corpus from zero, the 2 ways... in CQP and in cqpWeb<br>If the texts are like &quot;word pos lemma&quot; how I fill the fields?<br></div><div><div style="margin-left:40px"><a href="http://i.imgur.com/NC7ua7n.png">http://i.imgur.com/NC7ua7n.png</a><br></div>I don&#39;t know how to pass the different attributes.<br><br></div><div>Thank you so much.<br></div><div><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-16 13:14 GMT+01:00 Hardie, Andrew <span dir="ltr">&lt;<a href="mailto:a.hardie@lancaster.ac.uk" target="_blank">a.hardie@lancaster.ac.uk</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The mess via SSH is because<br>
<br>
- less highlights the numeric representation of bytes it can&#39;t represent<br>
- it emits the ESC-[7m control sequence to do this<br>
- ssh is not interpreting this correctly when it comes in the middle of a utf8 sequence<br>
- this may have something to do with how the receiving console is configured<br>
- but the vm terminal does handle the ESC-[7m correctly<br>
- but in either case, the action of less in introducing those highlight codes stops the UTF-8 sequence resolving as it does for the accented characters.<br>
<br>
Daniel: For the browser, something to check is what presentation encoding it is automatically set to when visiting any page on your CQPweb server; this will tell you what charset your HTTP server is emitting in the Content-Type header. It ought to be emitting UTF-8. (And check your browser has auto-detect encoding switched on, or the equivalent; that&#39;s optional in Chrome but I don&#39;t know about other browsers).<br>
<br>
CQPweb always tries to  set the HTTP Content-Type header to assert utf8 as the charset. It&#39;s possible, however, that your server might block this in some way ( I don&#39;t know how, but anything&#39;s possible I suppose).<br>
<br>
If neither browser nor HTTP server is the culprit, the next most likely explanation may be that you accidentally ticked the &quot;Tick here if the corpus is encoded in Latin1 (iso-8859-1) &quot; box in CQPweb&#39;s New Corpus form. If so, then the charset will be declared as latin1 in the registry file (instead of utf8 which is what it should be).<br>
<br>
If you did this, then CQPweb will re-code the data from (what it thinks is) latin1 to utf8 every time. If the underlying data is really UTF-8,  that re-coding would produce the effect you are seeing.<br>
<br>
best<br>
<span><font color="#888888"><br>
Andrew.<br>
</font></span><div><div><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a> [mailto:<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a>] On Behalf Of Stefan Evert<br>
Sent: 16 December 2015 09:02<br>
To: CWBdev Mailing List<br>
Subject: Re: [CWB] Accents and codification<br>
<br>
<br>
&gt; On 16 Dec 2015, at 01:28, Daniel Renau &lt;<a href="mailto:alphak87@gmail.com" target="_blank">alphak87@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; There&#39;s a way to solve this problem with accents and apostrophe?<br>
&gt;<br>
&gt; Pic related: <a href="http://i.imgur.com/OAVDzuG.png" rel="noreferrer" target="_blank">http://i.imgur.com/OAVDzuG.png</a><br>
&gt;<br>
&gt; At cqp via command line, the accents show OK (ssh connection or local terminal)<br>
&gt; At cqpWEB the accents are not displayed correctly.<br>
&gt; The apostrophe -&gt; &#39; &lt;- isn&#39;t shown properly anywhere, it shows &lt;80&gt;&lt;99&gt;<br>
&gt; At UTF8 table is named like &quot;RIGHT SINGLE QUOTATION MARK&quot;<br>
<br>
After taking a very close look at the screenshot, it would appear that your corpus is mostly encoded in UTF-8, but you have set CQPweb and/or your browser to interpret it as latin1.  If you change these settings to be consistent with your actual corpus encoding, the text should display fine.<br>
<br>
The encoding of RIGHT SINGLE QUOTATION mark might actually be broken in your input data, since it appears as a sequence of three bytes in your VM terminal and especially given the absolute mess of characters (and control codes??) showing up via ssh.<br>
<br>
Did &quot;cwb-encode -c utf8&quot; actually accept this input as well-formed UTF-8?<br>
<br>
Best,<br>
Stefan<br>
<br>
<br>
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><br>
<a href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer" target="_blank">http://devel.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><br>
<a href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer" target="_blank">http://devel.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div>Un saludo, Dani.</div>
</div></div></div></div></div></div></div></div></div>