<div dir="ltr"><div>Hi,</div><div><br></div><div>Is there a way to know encoding of string (bytes) literal</div><div>defined in source file? For example, given that source:</div><div><br></div><div>    # -*- coding: utf-8 -*-</div><div>    from library import Entry</div><div>    Entry("текст")</div><div><br></div><div>Is there any way for Entry() constructor to know that</div><div>string "текст" passed into it is the utf-8 string?</div><div><br></div><div>I need to better prepare SCons for Python 3 migration.</div><div><br></div>Please, CC.<br>-- <br><div class="gmail_signature">anatoly t.</div>
</div>