Differences From Artifact [d85b1be09a]:
- File src/OFHTTPResponse.m — part of check-in [bbe91438b1] at 2017-01-11 04:44:03 on branch trunk — Accept cp* and cp-* as encoding name (user: js, size: 5038) [annotate] [blame] [check-ins using]
To Artifact [c6e5820a6c]:
- File
src/OFHTTPResponse.m
— part of check-in
[adbf31f2f9]
at
2017-01-15 04:32:16
on branch trunk
— Add codepage 858
This only differs from codepage 850 by a single code point. (user: js, size: 5191) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
127 128 129 130 131 132 133 134 135 136 137 138 139 140 | encoding = OF_STRING_ENCODING_WINDOWS_1252; else if ([contentType hasSuffix: @"charset=cp437"] || [contentType hasSuffix: @"charset=cp-437"]) encoding = OF_STRING_ENCODING_CODEPAGE_437; else if ([contentType hasSuffix: @"charset=cp850"] || [contentType hasSuffix: @"charset=cp-850"]) encoding = OF_STRING_ENCODING_CODEPAGE_850; else if ([contentType hasSuffix: @"charset=macintosh"]) encoding = OF_STRING_ENCODING_MAC_ROMAN; } if (encoding == OF_STRING_ENCODING_AUTODETECT) encoding = OF_STRING_ENCODING_UTF_8; | > > > | 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | encoding = OF_STRING_ENCODING_WINDOWS_1252; else if ([contentType hasSuffix: @"charset=cp437"] || [contentType hasSuffix: @"charset=cp-437"]) encoding = OF_STRING_ENCODING_CODEPAGE_437; else if ([contentType hasSuffix: @"charset=cp850"] || [contentType hasSuffix: @"charset=cp-850"]) encoding = OF_STRING_ENCODING_CODEPAGE_850; else if ([contentType hasSuffix: @"charset=cp858"] || [contentType hasSuffix: @"charset=cp-858"]) encoding = OF_STRING_ENCODING_CODEPAGE_858; else if ([contentType hasSuffix: @"charset=macintosh"]) encoding = OF_STRING_ENCODING_MAC_ROMAN; } if (encoding == OF_STRING_ENCODING_AUTODETECT) encoding = OF_STRING_ENCODING_UTF_8; |
︙ | ︙ |