Issue 10223: socket.gethostname() fail - Python tracker (original) (raw)

C:\Users\PC-\Desktop>c:\python31\python Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32 Type “help”, “copyright”, “credits” or “license” for more information.

import socket socket.gethostname() Traceback (most recent call last): File “”, line 1, in UnicodeDecodeError: ‘utf8’ codec can’t decode bytes in position 0-1: invalid data

socket.gethostname() fail when system name is korean on Window Vista

[...