-
Notifications
You must be signed in to change notification settings - Fork 19
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
[BUG] `gsub!': invalid byte sequence in UTF-8 (ArgumentError) #137
Comments
Can be fixed by adding:
before:
|
@boldyrev-insegment Thanks for the bug report. Does the following code fix the bug ?
Best regards |
@azumakuniyuki yes, it did fix the problem. Sorry for such a late reply but I've tested the code on a bunch of different emails and found a few more bugs, so I had to tweak the code a little more : -- 1 --
add: -- 2 --
replace Hope that helps! |
@boldyrev-insegment Sorry for late response. Would you show me the email that causes the error (including entire message and email headers) at Private-Gist ? I will try to debug and fix the problem. Best regards, |
I'm sorry but I can't share it as far as the data is very sensitive. |
Some emails trigger the error in the subject in lib/sisimai/mime.rb:343
The text was updated successfully, but these errors were encountered: