I've wrote a very simple python code to display a window with window title being "سلام" and a label inside that window also saying "سلام"!
Here's the code I wrote:
import tkinter as tk
root = tk.Tk()
root.title("سلام")
tk.Label(root, text="سلام", font=('Arial', 16)).pack()
root.mainloop()
The problem is when I run the code using Windows 10, everything works finem but when I run it on CentOS7, the title displays fine but the label displays encoded.
I am using Python 3.8.18 with TkVersion 8.6
Update
Here's a list of fonts available on my CentOS7 system(checked with fc-list | grep -i "arial"):
/usr/share/fonts/Ariali.TTF: Arial:style=kurzíva,Italic
/usr/share/fonts/Arial.TTF: Arial:style=Κανονικά,Regular
/usr/share/fonts/AriBlk.TTF: Arial Black:style=Regular,Standard
/usr/share/fonts/Arialbi.TTF: Arial:style=tučné kurzíva,Bold Italic
/usr/share/fonts/Arialbd.TTF: Arial:style=tučné,Bold
Problem solved : switched to PyQt
