<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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@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:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Verdana","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@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-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">I direct your attention to the actual error message prior to the file/line reference you underline: “<b>Encoding error</b> …”<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Since it is falling over on the very first line with a non-ASCII character the obvious possibility would be that the file isn’t actually UTF-8 encoded.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> cwb-bounces@sslmit.unibo.it [mailto:cwb-bounces@sslmit.unibo.it]
<b>On Behalf Of </b>Daniel Renau<br>
<b>Sent:</b> 17 December 2015 22:45<br>
<b>To:</b> Open source development of the Corpus WorkBench<br>
<b>Subject:</b> Re: [CWB] Accents and codification<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Ok guys, thank you for info. I will tell them not to use the script anymore.<o:p></o:p></p>
</div>
<p class="MsoNormal">Maybe I will generate a script later, when I have a little time to sit down and look for perl info, but for now I need to encode de corpus.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN"><br>
What they told me they were doing so far?</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN">- They take some texts and translations</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN">- Put them in Déjàvu to align them</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN">- Use a perl script to separte in two different texts (original and translation)</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN">- Use TreeTagger to tag</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN">- Join all the texts together to make just (cat original* &gt; original.txt)<br>
<br>
</span>What I have?<br>
- Like 10 .txt files in 2 languages. (original an translation)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN">I'm in the step before to join the originals and translations</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN">What I did?</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN">- Join the texts. <a href="http://i.imgur.com/KN9Z7cY.png">
http://i.imgur.com/KN9Z7cY.png</a></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN">- Look the tags in them: &lt;s&gt; &lt;text&gt; &lt;unknown&gt;
<a href="http://i.imgur.com/pTisyew.png">http://i.imgur.com/pTisyew.png</a> (I had to change &lt;unknown&gt; to unknown)</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN">- Fill the form like this. <a href="http://i.imgur.com/lmDvLTy.png">
http://i.imgur.com/lmDvLTy.png</a></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN">- Get the error: <a href="http://i.imgur.com/RoY8sRu.png">
http://i.imgur.com/RoY8sRu.png</a></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN">Is this the best way? Are we doing something wrong?</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN">Thank you all.</span><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">2015-12-17 8:25 GMT&#43;01:00 Stefan Evert &lt;<a href="mailto:stefanML@collocations.de" target="_blank">stefanML@collocations.de</a>&gt;:<o:p></o:p></p>
<p class="MsoNormal"><br>
&gt; On 16 Dec 2015, at 21:34, Daniel Renau &lt;<a href="mailto:alphak87@gmail.com">alphak87@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Now my doubts are...<br>
&gt; 1- Better modify the script to call the encoder with &quot;-c utf8&quot;?<br>
<br>
Don't use the script from the command line, but rather write a small Perl script using the CWB::Encoder module.&nbsp; The command-line script you're running is basically the same thing, and just sets some parameters from command-line flags, others to immutable default
 values.<br>
<br>
With your own Perl script, you can then use the -&gt;charset() method to encode a UTF-8 corpus.&nbsp; If you know a little Perl, it would also be easy to change the command-line script so that it accepts a new flag for setting the charset.<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
Best,<br>
Stefan<br>
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><br>
<a href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb" target="_blank">http://devel.sslmit.unibo.it/mailman/listinfo/cwb</a><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <o:p></o:p></p>
<div>
<p class="MsoNormal">Un saludo, Dani.<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>