mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:47:39 +00:00
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
This commit is contained in:
parent
9bb6a7ddc6
commit
dbd69f759f
1 changed files with 2 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue