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

'ascii' codec can't encode characters in position 92-94: ordinal not in range(128) #2606

Closed
q127981 opened this issue Oct 14, 2021 · 3 comments

Comments

@q127981
Copy link

q127981 commented Oct 14, 2021

Steps to reproduce it?

Error when SQL contains Chinese characters.

image

image

Hue version or source? (e.g. open source 4.5, CDH 5.16, CDP 1.0...). System info (e.g. OS, Browser...).

HUE 4.10

@q127981 q127981 closed this as completed Oct 16, 2021
@yixinGod
Copy link

yixinGod commented Jan 4, 2022

How to solve this problem?

@szsuyuji
Copy link

szsuyuji commented Jul 4, 2022

@yixinGod edit ttypes.py line 3922
oprot.writeString(self.statement) to oprot.writeString(self.statement.encode('utf-8'))

@Harshg999
Copy link
Collaborator

Thanks @szsuyuji for pointing out the fix!
The issue is resolved in the latest 4.11.0 release.

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

4 participants