Hello every one

i have a weird probleme so in vbscript when we call ChrW function it return the character representation of a unicode for example

char1=Chrw(1584)

>> than if we write this char1 to file and we hexedit it we can see that the hex representation of it is \xD0

but in python we get this

>>> chr(1584)
'\u0630'
>>> chr(1584).encode("utf8")
b'\xd8\xb0'
>>>

so can you please tell me how to get the \xd0 in python

Thank You So much