Demand UTF-8
Each time you encode characters as bytes, you should do two things: Use UTF-8. Explicitly specify that UTF-8 is your charset. Conversely, whenever you decode bytes to characters, you should also do two things: Confirm that the charset is explicitly set to UTF-8. Use UTF-8. If you're working with data…