Tk Library Source Code

View Ticket
Login
Ticket UUID: 763712
Title: add optional charset decode to mime::getbody
Type: Patch Version: None
Submitter: gunzel Created on: 2003-07-01 06:58:11
Subsystem: mime Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-05-05 03:38:18
Resolution: Accepted Closed By: andreas_kupries
    Closed on: 2004-05-04 20:38:18
Description:
when calling mime::getbody, the body returned is still in
the charset as specified in the Content-Type, it seems to
me that it would be good if it could be decoded using 
::encoding convertfrom before being returned. As doing this 
automatically will probably break existing scripts I have 
added a -decode switch to getbody that when specified 
causes the charset to be decoded.

I've attached a patch that does this and some tests to test it. 
I'd strongly suggest adding my patch submission #758742, 
"charset mapencoding improvements" at the same time.

Matthew
User Comments: andreas_kupries added on 2004-05-05 03:38:18:
Logged In: YES 
user_id=75003

Applied to the cvs head, and committed. Updated the
documentation for getbody as well.

gunzel added on 2003-07-01 13:58:11:

File Added - 54560: getbody-decode.patch

Attachments: