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

UnicodeEncodeError #92

Open
invisilmk opened this issue Dec 30, 2019 · 3 comments
Open

UnicodeEncodeError #92

invisilmk opened this issue Dec 30, 2019 · 3 comments

Comments

@invisilmk
Copy link

fd.write(out + '\n')

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

@vitchyr
Copy link
Collaborator

vitchyr commented Jan 21, 2020

Where is this happening?

@gxywy
Copy link

gxywy commented Oct 12, 2021

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
Copy link

gxywy commented Oct 12, 2021

solution: remove %Z in

timestamp = now.strftime('%Y-%m-%d %H:%M:%S.%f %Z')

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

No branches or pull requests

3 participants