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

Encoding bug with regexes #592

Open
GoogleCodeExporter opened this issue Dec 28, 2015 · 1 comment
Open

Encoding bug with regexes #592

GoogleCodeExporter opened this issue Dec 28, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

An error occures with some characters (I assume utf-8 charachetrs). The error 
is "incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)".

I have fixed the problem on my machine, don't feel like submitting a patch, but 
will describe the solution here:

rr_lib.rb:1660 and rr_lib.rb:1663: add 'n' to the end of the regex. So this 
changes the line from 
var.gsub!(/\342\200\230|\342\200\231/, "'") to 
var.gsub!(/\342\200\230|\342\200\231/n, "'")

Original issue reported on code.google.com by [email protected] on 26 Jun 2014 at 12:58

@GoogleCodeExporter
Copy link
Author

Thanks jgrego, This fixed it for me.

Original comment by [email protected] on 10 Jan 2015 at 8:52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant