Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Chinese garbled code】 #125

Open
ctccaozhe opened this issue Feb 11, 2022 · 0 comments
Open

【Chinese garbled code】 #125

ctccaozhe opened this issue Feb 11, 2022 · 0 comments

Comments

@ctccaozhe
Copy link

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
图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant