From dbd69f759fd213df1df71ece968633438233f344 Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Mon, 23 Oct 2000 23:23:34 +0000 Subject: [PATCH] Use NSASCIIStringEncoding instead of NSLatin1StringEncoding for RTF git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7893 72102866-910b-0410-8b05-ffd578937521 --- Source/Parsers/attributedStringConsumer.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Parsers/attributedStringConsumer.m b/Source/Parsers/attributedStringConsumer.m index 99fe75948..c0ea8bc1b 100644 --- a/Source/Parsers/attributedStringConsumer.m +++ b/Source/Parsers/attributedStringConsumer.m @@ -340,9 +340,10 @@ readNSString(StringContext *ctxt) CREATE_AUTORELEASE_POOL(pool); RTFscannerCtxt scanner; StringContext stringCtxt; + // We should read in the first few characters to find out which encoding we have NSString *rtfString = [[NSString alloc] initWithData: rtfData - encoding: NSISOLatin1StringEncoding]; + encoding: NSASCIIStringEncoding]; // Reset this RFTConsumer, as it might already have been used! [self reset];