-
-
Save Burgestrand/e4f00a264fbdd732fa18eef8641f08f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ cat log.txt | |
- "å" | |
- 2 | |
- UTF-8 | |
- [195, 165] | |
- true | |
- å | |
- true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File.write("log.txt", <<-STR) | |
- #{c.inspect} | |
- #{c.bytesize} | |
- #{c.encoding} | |
- #{c.bytes} | |
- #{c == "å"} | |
- #{chr} | |
- #{/./ === c} | |
STR | |
abort unless c == ": |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment