X Tutup
Skip to content

Commit f90f7f9

Browse files
author
Johan Brichau
committed
Added cp-1252 encoding name on GRPharoZnCodec for backwards compatibility
1 parent fa86fe6 commit f90f7f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

repository/Grease-Pharo100-Core.package/GRPharoZnCodec.class/class/supportedEncodingNames.st

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ supportedEncodingNames
44

55
| all |
66
all := ZnCharacterEncoder knownEncodingIdentifiers asOrderedCollection.
7+
"We include some (but not all) alternative names for encodings, providing some backwards compatibility with TextConverter encoding names. Make a PR if you need more."
78
(all includes: 'utf8')
89
ifTrue:[ all addAll: #('utf-8' 'UTF-8') ].
910
(all includes: 'utf16')
1011
ifTrue:[ all addAll: #('utf-16' 'UTF-16') ].
1112
(all includes: 'macroman')
1213
ifTrue:[ all add: 'mac-roman' ].
14+
(all includes: 'cp1252')
15+
ifTrue:[ all add: 'cp-1252' ].
1316
^ all

0 commit comments

Comments
 (0)
X Tutup