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

JSON data source doesn't support unicode text in the data field #4260

Open
myonlylonely opened this issue Oct 17, 2019 · 2 comments
Open

JSON data source doesn't support unicode text in the data field #4260

myonlylonely opened this issue Oct 17, 2019 · 2 comments

Comments

@myonlylonely
Copy link
Contributor

myonlylonely commented Oct 17, 2019

Issue Summary

JSON data source doesn't support unicode text in the data field. It returned 'Error running query: 'ascii' codec can't encode characters in position 40-41: ordinal not in range(128)'.

Steps to Reproduce

  1. Create a query from JSON data source with unicode text in the data field.
url: http://XXX.XXX/XXX
method: post
data: '测试'
  1. Execute the query, and it returned
Error running query: 'ascii' codec can't encode characters in position 40-41: ordinal not in range(128)

Technical details:

  • Redash Version: 8.0 beta2
  • Browser/OS: CentOS 7
  • How did you install Redash: Docker
@myonlylonely myonlylonely changed the title JSON data source doesn't support unicode text in data field JSON data source doesn't support unicode text in the data field Oct 17, 2019
@deecay
Copy link
Contributor

deecay commented Oct 20, 2019

Hi,

May be you need to construct YAML in a different way?

image

@myonlylonely
Copy link
Contributor Author

myonlylonely commented Oct 20, 2019

Hi,

May be you need to construct YAML in a different way?

image

The data must be a structured JSON string. But I wanted to post a non-JSON data string with unicode string.

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

2 participants