The issue might have occurred because the encoding is set to UTF-8 and not UTF-16. (Refer to the thread What is Unicode, UTF-8, UTF-16?)
Quick Fix: Use u'required_string'
instead of 'required_string'
.
Rectified Code:
from tkinter import *
window = Tk()
entry = Entry(window)
entry.pack()
entry.insert(END, u"???")
window.mainloop()
The above code works great for me! Kindly run and let us know if it solves your purpose!
Output:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…