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

Fix encoding error #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

haruhi0000
Copy link

…guration

@haruhi0000 haruhi0000 changed the title Fixed an issue where coding errors failed to get the computer's confi… Fixed an issue where encoding errors failed to get the computer's confi… Dec 22, 2021
@haruhi0000 haruhi0000 changed the title Fixed an issue where encoding errors failed to get the computer's confi… Fix encoding error Dec 22, 2021
@haruhi0000
Copy link
Author

If the video card name contains special characters, the program will exit with an error.
Example:

C:\Users>wmic path win32_VideoController get name
Name
Intel(R) HD Graphics 530
英伟达 GeForce GTX 950M
PS C:\agent> python .\hashtopolis
Found existing lock.pid, checking if python process is running...
Ignoring lock.pid file because PID is not existent anymore or not running python!
Starting client 's3-python-0.6.0'...
Collecting agent data...
Traceback (most recent call last):
  File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\agent\hashtopolis\__main__.py", line 342, in <module>
    init(args)
  File "C:\agent\hashtopolis\__main__.py", line 136, in init
    Initialize().run(args)
  File "C:\agent\hashtopolis\htpclient\initialize.py", line 25, in run
    self.__update_information()
  File "C:\agent\hashtopolis\htpclient\initialize.py", line 118, in __update_information
    output = output.decode(encoding="uft-8").replace("\r\n", "\n").split("\n")
LookupError: unknown encoding: uft-8

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

Successfully merging this pull request may close these issues.

1 participant