rlkit icon indicating copy to clipboard operation
rlkit copied to clipboard

UnicodeEncodeError

Open invisilmk opened this issue 4 years ago • 3 comments

fd.write(out + '\n')

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

invisilmk avatar Dec 30 '19 10:12 invisilmk

Where is this happening?

vitchyr avatar Jan 21 '20 16:01 vitchyr

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 avatar Oct 12 '21 03:10 gxywy

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

gxywy avatar Oct 12 '21 03:10 gxywy