mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +00:00
Added setDefaultEncoding:
This is needed in GSWeb if you use utf-8 and faster than using a String as encoding name. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20893 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9516f670eb
commit
fb8158c3c5
2 changed files with 12 additions and 0 deletions
|
@ -202,6 +202,8 @@
|
||||||
- (NSString*) scanToken: (NSScanner*)scanner;
|
- (NSString*) scanToken: (NSScanner*)scanner;
|
||||||
- (void) setBuggyQuotes: (BOOL)flag;
|
- (void) setBuggyQuotes: (BOOL)flag;
|
||||||
- (void) setDefaultCharset: (NSString*)aName;
|
- (void) setDefaultCharset: (NSString*)aName;
|
||||||
|
- (void) setDefaultEncoding: (NSStringEncoding)encoding;
|
||||||
|
|
||||||
- (void) setIsHttp;
|
- (void) setIsHttp;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
|
@ -1950,6 +1950,16 @@ NSDebugMLLog(@"GSMime", @"Header parsed - %@", info);
|
||||||
_defaultEncoding = [GSMimeDocument encodingFromCharset: aName];
|
_defaultEncoding = [GSMimeDocument encodingFromCharset: aName];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to inform the parser that body parts with no content-type
|
||||||
|
* header (which are treated as text/plain) should use the specified
|
||||||
|
* NSStringEncoding rather than the default
|
||||||
|
*/
|
||||||
|
- (void) setDefaultEncoding: (NSStringEncoding)encoding
|
||||||
|
{
|
||||||
|
_defaultEncoding = encoding;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to inform the parser that the data it is parsing is an HTTP
|
* Method to inform the parser that the data it is parsing is an HTTP
|
||||||
* document rather than true MIME. This method is called internally
|
* document rather than true MIME. This method is called internally
|
||||||
|
|
Loading…
Reference in a new issue