Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Wrong default encoding for loading code snippets #1171
Steps to reproduce
Code snippets are loaded with the explicitly stated encoding at the top of the file (e.g.
Code snippets are loaded with the encoding defined in the environment.
This also applies to Rules, Checks, and commands defined in
An initial step would be to interpret the contents as UTF-8 (which Ruby defaults to anyway), but a better approach would be to infer the encoding from the initial line, looking for