question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error running query: 'ascii' codec can't encode characters in position

See original GitHub issue

Welcome 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

  1. This is the first step
  2. 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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
tonyjianghcommented, Jan 27, 2018

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.)

0reactions
arikfrcommented, Apr 12, 2018

I would like to ask what is the best and easy way to apply newer changes which has not been released such as the commit

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found