Error running query: 'ascii' codec can't encode characters in position
See original GitHub issueWelcome to Redash’s GitHub repo! 👋🎉
Do you need help or have a question? Checkout the Support category in our discussion forum: https://discuss.redash.io/c/support.
Got an idea for a new feature? Check if it isn’t on the roadmap already: http://bit.ly/redash-roadmap and start a new discussion in the features category: https://discuss.redash.io/c/feature-requests 🌟.
Found a bug? Please fill out the sections below… thank you 👍
Issue Summary
Browser: Chrome Env: Mac
I am getting an error on running queries.
Error running query: 'ascii' codec can't encode characters in position 103-104: ordinal not in range(128)
Steps to Reproduce
- This is the first step
- This is the second step, etc.
Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?
Technical details:
- Redash Version:
- Browser/OS:
- How did you install Redash:
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Fix Python UnicodeEncodeError: 'ascii' codec can't encode ...
How to Fix UnicodeEncodeError: 'ascii' codec can't encode character in Python and when writing pandas DataFrames to CSV files.
Read more >'ascii' codec can't encode character u'\xa0' in position 10 error ...
I am trying to load data from big query table in a CSV file and while running the pipeline locally you need to...
Read more >Python ASCII codec error for queries with characters not in ASCII
Issue Summary I get an encoding error when writing a query with characters that are not encoded in ascii. I think I first...
Read more >New QGIS 3.16 error - UnicodeEncodeError: 'ascii' codec can't ...
For some reason this error now occurs when I open a project in QGIS 3.16. The best I can find online is that...
Read more >SQLAlchemy: UnicodeEncodeError: 'ascii' codec can't encode ...
I am currently engaged in evaluating SQLAlchemy for a new project. When trying to execute queries containing non-ascii characters an exception is raised....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you’re using v3, and it’s about query_result. Then, the fix is merged: https://github.com/getredash/redash/pull/2165
(It would be much easier for us to understand your situation if you could just fill in the issue template.)
What you did is probably good enough if you just need a small fix. Otherwise you can either upgrade to the CI version or use a beta release when one is available.
Also I’m closing this now, as @rajsharma1612 never followed up and looks like this is indeed already fixed.