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

fails if trying to include unicode in self.report message #47

Open
ntdaley opened this issue Jul 14, 2017 · 1 comment
Open

fails if trying to include unicode in self.report message #47

ntdaley opened this issue Jul 14, 2017 · 1 comment

Comments

@ntdaley
Copy link

ntdaley commented Jul 14, 2017

I like to write rules to copy the problematic cell into the message for self.report().

If the problematic code includes unicode, then this results in an error

'ascii' codec can't encode character u'\xf3' in position 104: ordinal not in range(128)

I think this stems from RfLint.format() where it calls self.args.format.format().
But, self.args.format is an ascii string, so when formatting, it can't insert the unicode text into it.

@boakley
Copy link
Owner

boakley commented Jul 14, 2017 via email

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

2 participants