Thank you! It works!

Actually I realized my tests were wrong. I entered text directly in my code and Unicode characters were split in 8-bit characters. Now that I enter text in a QLineEdit, it works much better.