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

UTF-8 encoded string in Task throwing exception #17

Open
roback opened this issue Feb 18, 2014 · 2 comments
Open

UTF-8 encoded string in Task throwing exception #17

roback opened this issue Feb 18, 2014 · 2 comments
Assignees

Comments

@roback
Copy link

roback commented Feb 18, 2014

If the arg string given to Task.new is encoded as UTF-8 and contains chars such as åäö, an
Encoding::CompatibilityError Incompatible character encodings: UTF-8 and ASCII-8BIT is thrown on line 217.

Calling .force_encoding(Encoding::ASCII_8BIT) on the arg string before calling Task.new("test", arg) fixes the problem.

@roback roback closed this as completed Feb 18, 2014
@roback roback reopened this Feb 18, 2014
@tamoyal
Copy link

tamoyal commented Jan 8, 2015

+1

@johnewart
Copy link
Owner

I'll write some specs to test this and then fix it.

@johnewart johnewart self-assigned this Jan 13, 2015
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