@@ -21,11 +21,11 @@ #import "OFString.h" #import "OFDictionary.h" #import "OFArray.h" #import "OFData.h" -#import "OFInvalidEncodingException.h" +#import "OFInvalidArgumentException.h" #import "OFInvalidFormatException.h" #import "OFOutOfRangeException.h" #import "OFTruncatedDataException.h" #import "OFUnsupportedVersionException.h" @@ -216,11 +216,11 @@ charset = value; } @try { ret = of_string_parse_encoding(charset); - } @catch (OFInvalidEncodingException *e) { + } @catch (OFInvalidArgumentException *e) { ret = OF_STRING_ENCODING_AUTODETECT; } return ret; }