<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Thanks both for prompt replies.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">@Valentin's</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_default"><span style="font-family:monospace,monospace">stream = qt.QDataStream(byte_array, qt.QIODevice.ReadOnly)<br>
my_string = stream.readQString()</span></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">In my experience it looks to be portable, you dont have to
encode/decode the string. </div></blockquote><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">looks much more like something reasonable to me, and I'm about to go investigate now.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">@Florian</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Although I will consider what you have suggested if I have to, as I have said I have <i>never</i> had to know/guess/affect anything to do with encoding when writing similar code outside of Python/PyQt/Qt and have <i>never</i> had a problem or an error, so I really don't see why I should have to start doing so now....<br></div><div class="gmail_extra"><br><br></div></div>