Differences From 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]
To Artifact [f8cf1ed9b2]:
- File src/OFHTTPResponse.m — part of check-in [238d47a1d6] at 2017-01-17 01:20:30 on branch trunk — Allow iso_8859-* spellings for encoding (user: js, size: 5304) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
109 110 111 112 113 114 115 | if (encoding == OF_STRING_ENCODING_AUTODETECT && (contentType = [_headers objectForKey: @"Content-Type"]) != nil) { contentType = [contentType lowercaseString]; if ([contentType hasSuffix: @"charset=utf-8"]) encoding = OF_STRING_ENCODING_UTF_8; | | > | > | 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | if (encoding == OF_STRING_ENCODING_AUTODETECT && (contentType = [_headers objectForKey: @"Content-Type"]) != nil) { contentType = [contentType lowercaseString]; if ([contentType hasSuffix: @"charset=utf-8"]) encoding = OF_STRING_ENCODING_UTF_8; else if ([contentType hasSuffix: @"charset=iso-8859-1"] || [contentType hasSuffix: @"charset=iso_8859-1"]) encoding = OF_STRING_ENCODING_ISO_8859_1; else if ([contentType hasSuffix: @"charset=iso-8859-15"] || [contentType hasSuffix: @"charset=iso_8859-15"]) encoding = OF_STRING_ENCODING_ISO_8859_15; else if ([contentType hasSuffix: @"charset=windows-1251"] || [contentType hasSuffix: @"charset=cp1251"] || [contentType hasSuffix: @"charset=cp-1251"]) encoding = OF_STRING_ENCODING_WINDOWS_1251; else if ([contentType hasSuffix: @"charset=windows-1252"] || [contentType hasSuffix: @"charset=cp1252"] || |
︙ | ︙ |