So Python 2 code that deals with Unicode may contain odd hacks to try and deal with those flaws. It may not necessarily behave correctly in all cases. And it may behave quite differently if you try to run it in Python 3. In some cases, it won't run, and you'll get an error message. But it might run and do wrong things, resulting in
mojibake. So you need to carefully test such code and inspect the output.