211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
|
value = value.stringByDeletingTrailingWhitespaces;
if ([name isEqual: @"charset"])
charset = value;
}
@try {
ret = OFParseStringEncodingName(charset);
} @catch (OFInvalidArgumentException *e) {
ret = OFStringEncodingAutodetect;
}
return ret;
}
|
|
|
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
|
value = value.stringByDeletingTrailingWhitespaces;
if ([name isEqual: @"charset"])
charset = value;
}
@try {
ret = OFStringEncodingParseName(charset);
} @catch (OFInvalidArgumentException *e) {
ret = OFStringEncodingAutodetect;
}
return ret;
}
|