rail-berkeley / rlkit

Collection of reinforcement learning algorithms
MIT License
2.52k stars 553 forks source link

UnicodeEncodeError #92

Open invisilmk opened 4 years ago

invisilmk commented 4 years ago
fd.write(out + '\n')

UnicodeEncodeError: 'gbk' codec can't encode character '\xd6' in position 27: illegal multibyte sequence

vitchyr commented 4 years ago

Where is this happening?

gxywy commented 3 years ago

same issue

File "f:\rl experiment\offline rl\cql\d4rl\rlkit\core\logging.py", line 170, in log
 fd.write(out + '\n')
UnicodeEncodeError: 'gbk' codec can't encode character '\xd6' in position 27: illegal multibyte sequence
gxywy commented 3 years ago

solution: remove %Z in https://github.com/rail-berkeley/rlkit/blob/60bdfcd09f48f73a450da139b2ba7910b8cede53/rlkit/core/logging.py#L179