@@ -188,11 +188,11 @@ else if ([string isEqual: @"koi8-r"]) encoding = OF_STRING_ENCODING_KOI8_R; else if ([string isEqual: @"koi8-u"]) encoding = OF_STRING_ENCODING_KOI8_U; else - @throw [OFInvalidEncodingException exception]; + @throw [OFInvalidArgumentException exception]; objc_autoreleasePoolPop(pool); return encoding; }