I want to encode an Arabic string. I actually tried to pass the string as is, but it did not work. I tried to encode it and it also didn't work. Here is the code and the output: جاÙ\x85عة اÙ\x84Ù\x8aرÙ\x85Ù\x88Ù\x83
self.set_font("Arial","",11)
self.set_text_color(15,164,12)
self.set_y(2.0)
str="جامعة اليرموك"
str=str.encode("utf-8")
str=str.decode("latin1")
self.cell(0,5,str,align="C",border=1)
I was expecting the output is "جامعة اليرموك"