-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(properties_file): simplify, standarize on Windows-1252 encoding
The Java documentation specifies that .properties files should use the Windows-1252 (also imprecisely known as ISO-8859-1) encoding, but there was code for supporting the Unicode BOM, which should not appear on the first place and does not help with incompatible misinterpretations of the source encoding as UTF-8; it'd only help if a UTF-8 with BOM file only uses ASCII characters, but break in other cases. In the future, we might study and implement ways of handling several encodings, depending on the encoding expected by the mod using these files.
- Loading branch information
1 parent
ff0981f
commit d3c3e13
Showing
5 changed files
with
30 additions
and
58 deletions.
There are no files selected for viewing
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
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
5 changes: 5 additions & 0 deletions
5
packages/packsquash/src/pack_file/properties_file/escaped_unicode_characters.properties
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# The U+00E9 'LATIN SMALL LETTER E WITH ACUTE' Unicode escape code should be minified | ||
# to its equivalent ISO-8859-1 codepoint, which is a single byte. | ||
# U+2764 'HEAVY BLACK HEART' cannot be represented with ISO-8859-1 and should be | ||
# kept escaped | ||
nbt.Name = Th\u00e9oriciennes\u2764 |
1 change: 1 addition & 0 deletions
1
...s/packsquash/src/pack_file/properties_file/escaped_unicode_characters_minified.properties
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nbt.Name=Th�oriciennes\u2764 |
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