<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Dear List,<br>
    <br>
    I am using CWB 3.4.8 on 64 bit Ubuntu 14.10.<br>
    After encoding a text in Old Church Slavonic, I get invalid UTF-8
    character errors; I seem to get them only in sgml mode (I also get
    them during alignment with the Ancient Greek translation source,
    which might be a related problem, but I am not sure.)<br>
    <br>
    In order to pinpoint the problem with the Old Church Slavonic text,
    I have reduced the text in question to two bible verses. The text
    can be found here: <a class="moz-txt-link-abbreviated" href="http://www.parasolcorpus.org/test.txt">www.parasolcorpus.org/test.txt</a><br>
    <br>
    I encode the corpus with the following commands:<br>
    /opt/CWBUTF8/cwb/utils/cwb-encode -d Data/ntestament_tt -f test.txt
    -R /data/PROIEL/Registry/ntestament_tt -c utf8 -xsB -P lemma -P id
    -P alig -P pos -P tag -S aligVerse:0<br>
    /opt/CWBUTF8/cwb/utils/cwb-makeall -r /data/PROIEL/Registry
    NTESTAMENT_TT<br>
    <br>
    There is no problem in text mode:<br>
    <br>
    <img src="cid:part1.06060306.00050906@gmx.net" alt=""><br>
    <br>
    However, in sgml mode, some lemmas get truncated and do not contain
    valid utf8 anymore. For example, the lemma of "с҃вщаѩи" is such a
    token. This problem does NOT appear if I search for this token
    itself, it ONLY and consistently appears if I search for a different
    token and the problematic token is in the result set:<br>
    <img src="cid:part2.02030501.05080501@gmx.net" alt=""><br>
    <br>
    To sum up: I get the problem only if I search for a neighboring
    token in sgml mode. I don't get it if I search for the token itself,
    and I don't get it in text mode. I have reduced the problem to w
    50-token text, and the problem persists.<br>
    <br>
    Any help would be greatly appreciated!<br>
    Best, <br>
    Ruprecht<br>
    <br>
    <br>
    <br>
    <br>
  </body>
</html>