[Pidgin] #7510: Conversation "Save As" uses HTML without doctype etc

Pidgin trac at pidgin.im
Tue Nov 11 09:48:56 EST 2008


#7510: Conversation "Save As" uses HTML without doctype etc
------------------+---------------------------------------------------------
Reporter:  jas    |        Type:  defect      
  Status:  new    |   Component:  pidgin (gtk)
 Version:  2.4.2  |    Keywords:              
------------------+---------------------------------------------------------
 Selecting 'Save As' in a conversation window results in HTML that looks
 like:

 <html>
 <head><title>XXX at hotmail.com</title></head>
 <body><h1>Conversation with XXX at hotmail.com</h1>
 <font color="#cc0000"><font size="2">(03:04:49 PM) </font><b><font
 size="3">XXX:</font></b></font><font size="3"></font><font size="3"> <font
 color="#000000"><font face="MS Shell Dlg">YYY</font></font></font><br>
 ...

 If XXX or YYY contains non-ascii characters, they are saved in UTF-8,
 however many browsers (including both iceweasel and epiphany) auto-detect
 the file as ISO-8859-1.

 How about adding a header looking something like this:

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
           "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 ...

 I suspect this will allow browsers to chose the appropriate charset.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/7510>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list