Created
July 10, 2017 04:48
-
-
Save civitaspo/6977c4f256c79e5cf97dba6cb1865dec to your computer and use it in GitHub Desktop.
if `frozen_string_literal: true` is before `encoding: cp932`, `encoding: cp932` doesn't work.
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
#<Encoding:Windows-31J> |
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
# encoding: cp932 | |
# frozen_string_literal: true | |
p "aaa".encoding |
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
#<Encoding:UTF-8> |
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
# frozen_string_literal: true | |
# encoding: cp932 | |
p "aaa".encoding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment