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

Fix an encoding error with non-standard chars #106

Closed
wants to merge 2 commits into from

Conversation

alokhmutov
Copy link

Fixes #105

@jrochkind
Copy link

jrochkind commented Jul 23, 2023

I'm being affected by this too, and this solution looks right to me. Thanks @alokhmutov !

My guess is that ruby 3.2 started raising a Encoding::CompatibilityError here instead of a RegexpError, maybe? In some circumstances anyway?

Is there any chance of getting this two-month-old PR reviewed/merged/released?

@jrochkind
Copy link

(Actually, looking at the ruby bug the original rescue links to... I'm very confused whats' going on, and am not completely sure of the fix now! But something is going on that needs to be fixed...)

@girardof
Copy link
Contributor

girardof commented Aug 4, 2023

Hi alokhmutov and jrochkind, thank you for opening the issue and this PR. This was fixed in #111 and will be available in the version 1.1.1 of device detector.

@girardof girardof closed this Aug 4, 2023
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

Successfully merging this pull request may close these issues.

Encoding::CompatibilityError caused by "é" in User-Agent
3 participants