<div>Does this issue also affect dictionary 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 <<a href="mailto:scribe@crosswire.org" class="">scribe@crosswire.org</a>> wrote:<blockquote class="protonmail_quote" type="cite"> Hi Pierre,<br><br>I had similar problems with our Java bindings. Java was unforgiving<br>with invalid UTF-8 characters, as well. 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. 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>> Hi there !<br>><br>> Playing with the python3 Sword module I hit a problem that I did not<br>> have with python2 when dealing with Strongs definition such as G1140<br>> (daimonion). It looks like the 'æ' character is causing problem.<br>><br>> This example works with python2, but generate an error when ran wiht python3:<br>><br>> ##########<br>> import Sword<br>> library = Sword.SWMgr()<br>> target=library.getModule("StrongsGreek")<br>> vk=Sword.SWKey("1140")<br>> target.setKey(vk)<br>> strongEntry=target.renderText().getRawData()<br>> ###########<br>><br>> File "/usr/local/sword/python3/lib64/python3.4/site-packages/Sword.py",<br>> line 128, in getRawData<br>> def getRawData(self): return _Sword.SWBuf_getRawData(self)<br>> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position<br>> 73: invalid continuation byte<br>><br>> Anyone knows how to be able to catch the content of this entry in a<br>> python variable ?<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<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>