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

Incompatible character encodings: ASCII-8BIT and UTF-8 #318

Closed
meap opened this issue Dec 27, 2019 · 5 comments
Closed

Incompatible character encodings: ASCII-8BIT and UTF-8 #318

meap opened this issue Dec 27, 2019 · 5 comments

Comments

@meap
Copy link

meap commented Dec 27, 2019

After upgrade to latest ruby-pg 1.20, I am encountering with the following error:

Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8

The rest environment has not been changed, and the issue is related to the upgrade of the gem. Do you have an idea what could be wrong?

Ruby 2.6.5 (tested also on 2.7), Postgres 10 (tested also on 11), Sequel and Sequel_pg in the latest versions.

Stack trace: https://gist.github.com/meap/0d6712712eb9f8a912394b443f878e7d

@bitencode
Copy link

Having the same issue, downgraded back to pg 1.1 and everything is working fine 😕. I tested on Ruby 2.6.3 and Postgres 10 and 12, Sequel 5.27.0 (latest) and Sequel_pg 1.12.2 (latest).

@larskanis
Copy link
Collaborator

This is actually an issue of sequel_pg. I filed a report here: jeremyevans/sequel_pg#34

Could you please try to remove sequel_pg from the Gemfile and retry with pg-1.2.0?

@meap
Copy link
Author

meap commented Dec 28, 2019

Yes, you're right. It works without sequel_pg.

@bitencode
Copy link

Agreed, pg-1.2.0 works fine when sequel_pg is not used.

@larskanis
Copy link
Collaborator

sequel_pg-1.12.4 and pg-1.2.1 fix this. Thank you @jeremyevans !

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