I recently made a code using unicode in C++.
Later helped someone generate Farsi characters in Python.
It took time to find a method and format that worked.
import sys, codecs
sys.stdout = codecs.getwriter('utf-16')(sys.stdout.buffer, 'strict')
print(input()) # input 'ü'
Without the encoding lines, only one line works; outcomment them, suddenly only the other works.