【Chinese garbled code】
ctccaozhe opened this issue · 0 comments
ctccaozhe commented
The following code is the content of rdpy-rdphp.py
I slightly modified the output format of rdpy
domain, username, password = self._controller.getCredentials()
hostname = self._controller.getHostname()
print("username::::", username,type(username))
print('{"type":2,"time":"%s","domain":"%s","addr":"%s:%s","username":"%s","password":"%s","hostname":"%s"}'%(datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S.%fZ"), domain, addr.host, addr.port,username, password, hostname))
# self.start()
self._controller.close()
For example, when the input user name is Chinese "憨憨", there will be garbled code