<div>Does this issue also affect dictionary&nbsp;module StrongsRealGreek in the Xiphos repo?</div><div><br></div><div>Or was that encoded correctly as UTF-8 ?</div><div><br></div><div>David</div><div><br></div><div id="protonmail_mobile_signature_block"><div>Sent from ProtonMail Mobile</div></div> <div><br></div><div><br></div>On Sun, Jun 16, 2019 at 20:14, Troy A. Griffitts &lt;<a href="mailto:scribe@crosswire.org" class="">scribe@crosswire.org</a>&gt; wrote:<blockquote class="protonmail_quote" type="cite">  Hi Pierre,<br><br>I had similar problems with our Java bindings.&nbsp; Java was unforgiving<br>with invalid UTF-8 characters, as well.&nbsp; Ultimately we should fix any<br>invalid UTF-8 characters in our modules and encode them correctly, but<br>my solution was, in the bindings code, to call:<br><br>assureValidUTF8()<br><br>before returning results to Java.&nbsp; This call is available from SWORD's<br>utilstr.h<br><br>Hope this helps a bit,<br><br>Troy<br><br><br>On 6/16/19 12:02 PM, pierre amadio wrote:<br>&gt; Hi there !<br>&gt;<br>&gt; Playing with the python3 Sword module I hit a problem that I did not<br>&gt; have with python2 when dealing with Strongs definition such as G1140<br>&gt; (daimonion). It looks like the 'æ' character is causing problem.<br>&gt;<br>&gt; This example works with python2, but generate an error when ran wiht python3:<br>&gt;<br>&gt; ##########<br>&gt; import Sword<br>&gt; library = Sword.SWMgr()<br>&gt; target=library.getModule("StrongsGreek")<br>&gt; vk=Sword.SWKey("1140")<br>&gt; target.setKey(vk)<br>&gt; strongEntry=target.renderText().getRawData()<br>&gt; ###########<br>&gt;<br>&gt;   File "/usr/local/sword/python3/lib64/python3.4/site-packages/Sword.py",<br>&gt; line 128, in getRawData<br>&gt;     def getRawData(self): return _Sword.SWBuf_getRawData(self)<br>&gt; UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position<br>&gt; 73: invalid continuation byte<br>&gt;<br>&gt; Anyone knows how to be able to catch the content of this entry in a<br>&gt; python variable ?<br>&gt;<br>&gt; _______________________________________________<br>&gt; sword-devel mailing list: sword-devel@crosswire.org<br>&gt; http://www.crosswire.org/mailman/listinfo/sword-devel<br>&gt; Instructions to unsubscribe/change your settings at above page<br><br>_______________________________________________<br>sword-devel mailing list: sword-devel@crosswire.org<br>http://www.crosswire.org/mailman/listinfo/sword-devel<br>Instructions to unsubscribe/change your settings at above page</blockquote><div><br></div><div><br></div>