@@ -39,10 +39,13 @@ [self freeMemory: string]; len = strlen(str); switch (of_string_check_utf8(str, len)) { + case 0: + is_utf8 = NO; + break; case 1: is_utf8 = YES; break; case -1: string = NULL; @@ -132,11 +135,16 @@ return self; } - appendString: (OFString*)str { - return [self appendCStringWithoutUTF8Checking: [str cString]]; + [self appendCStringWithoutUTF8Checking: [str cString]]; + + if (str->is_utf8) + is_utf8 = YES; + + return self; } - appendWithFormat: (OFString*)fmt, ... { id ret;