I tried to run http.server on Windows 10 (Hungarian) and got the following error.
PS D:> python -m http.server 8000 Traceback (most recent call last): File "D:\Python36\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "D:\Python36\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "D:\Python36\lib\http\server.py", line 1211, in test(HandlerClass=handler_class, port=args.port, bind=args.bind) File "D:\Python36\lib\http\server.py", line 1185, in test with ServerClass(server_address, HandlerClass) as httpd: File "D:\Python36\lib\socketserver.py", line 453, in init self.server_bind() File "D:\Python36\lib\http\server.py", line 138, in server_bind self.server_name = socket.getfqdn(host) File "D:\Python36\lib\socket.py", line 673, in getfqdn hostname, aliases, ipaddrs = gethostbyaddr(name) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 3: invalid continuation byte
What can I do?