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

Scrub out characters with invalid encoding #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Scrub out characters with invalid encoding #32

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented May 28, 2014

I know the String#scrub method is new, so I check to make sure we're on a ruby that supports this... maybe someone else could chime in about a more compatible way to do this across versions.

Thanks!

@ghost ghost changed the title Scrub out character with invalid encoding Scrub out characters with invalid encoding May 28, 2014
@ghost
Copy link
Author

ghost commented May 28, 2014

A bit of background for the motivation... ran into this error when running bin/oin log/* :

---- MEMORY THRESHOLD ----
THRESHOLD: 75 MB
/home/slackz/repos/theclymb/.bundle/ruby/2.1.0/gems/oink-0.10.1/lib/oink/reports/memory_usage_report.rb:20:in `=~': invalid byte sequence in UTF-8 (ArgumentError)
    from /home/slackz/repos/theclymb/.bundle/ruby/2.1.0/gems/oink-0.10.1/lib/oink/reports/memory_usage_report.rb:20:in `block (2 levels) in print'

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.

0 participants