(fix) fallback to Latin1 when trying to parse versit data
parent
364a07bd05
commit
64da65d827
|
@ -1075,6 +1075,12 @@ static NSCharacterSet *whitespaceCharSet = nil;
|
|||
// FIXME: Data is not always utf-8.....
|
||||
source = [[[NSString alloc] initWithData: _data encoding: encoding]
|
||||
autorelease];
|
||||
|
||||
// We fallback to ISO-8859-1 string encoding
|
||||
if (!source)
|
||||
source = [[[NSString alloc] initWithData: _data encoding: NSISOLatin1StringEncoding]
|
||||
autorelease];
|
||||
|
||||
if (!source)
|
||||
{
|
||||
e = (id)[SaxParseException exceptionWithName: @"SaxIOException"
|
||||
|
|
Loading…
Reference in New Issue