-
Notifications
You must be signed in to change notification settings - Fork 58
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
Incompatible character encodings: UTF-8 and ASCII-8BIT while crawling a page which contains UTF Characters. #146
Comments
Hi, |
Same for me in 1.43.5 and 2.2.27. |
@pratik705 you can force
format_message(
color: impact,
indicator: impact,
indentation: 5,
message: message.force_encoding(Encoding::UTF_8),
) Btw: you will find the full path to |
I can confirm that @lehn-etracker 's fix resolves this when doing a kitchen verify on older Linux versions that use non-UTF8 encodings. |
Thank you @starx for reporting the issue. I added a PR in InSpec to add a functional test to verify that this does not happen again. Once merged you need to update to latest inspec to prevent the issue happening. |
@chris-rock That is Great news. |
Description
In a test, trying to verify contents of a web address by crawling is failing.
Kitchen Log
InSpec and Platform Version
Inspec: 1.31.1
Kitchen: 1.16.0
Replication Case
A simple test case like this is enough. The page it is crawling should have Unicode characters. e.g. http://blog.mrnepal.com
I opened this issue previously in chef/inspec was instructed that issue was not related to Inspec but this repo instead.
The text was updated successfully, but these errors were encountered: