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

Fix bad UTF-8 encoding issues #259

Merged
merged 1 commit into from
Jan 25, 2017

Conversation

0xced
Copy link
Contributor

@0xced 0xced commented Oct 19, 2016

Before this commit, the html report was displaying this:
// Copyright (c) 2013-2016 C��dric Luthi. All rights reserved.

After this commit, the html report is displaying this:
// Copyright (c) 2013-2016 Cédric Luthi. All rights reserved.

I added a 🌟 (Glowing Star, U+1F31F) in the fixtures to make sure it’s property encoded.

The problem was that valid UTF-8 was interpreted as "binary" and re-encoded as UTF-8, producing invalid output.

Before this commit, the html report was displaying this:
//  Copyright (c) 2013-2016 C��dric Luthi. All rights reserved.

After this commit, the html report is displaying this:
//  Copyright (c) 2013-2016 Cédric Luthi. All rights reserved.

I added a 🌟 (Glowing Star, U+1F31F) in the fixtures to make sure it’s property encoded.

The problem was that valid UTF-8 was interpreted as "binary" and re-encoded as UTF-8, producing invalid output.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 95.188% when pulling 51c2922 on 0xced:fix-bad-encoding into ef8ba65 on SlatherOrg:master.

Copy link
Contributor

@eliperkins eliperkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for doing this! 🍏

@@ -3,7 +3,7 @@
// fixtures
//
// Created by Mark Larsen on 6/24/14.
// Copyright (c) 2014 marklarr. All rights reserved.
// Copyright (c) 2014 marklarr 🌟. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐️

@0xced
Copy link
Contributor Author

0xced commented Nov 30, 2016

Ping.

@bootstraponline bootstraponline merged commit c6fa6b0 into SlatherOrg:master Jan 25, 2017
@bootstraponline
Copy link
Member

Thanks for the pull request.

@ksuther ksuther mentioned this pull request Mar 12, 2017
@ksuther ksuther mentioned this pull request Mar 29, 2017
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.

4 participants