[Pidgin] #7510: Conversation "Save As" uses HTML without doctype etc
Pidgin
trac at pidgin.im
Tue Nov 11 12:22:12 EST 2008
#7510: Conversation "Save As" uses HTML without doctype etc
--------------------+-------------------------------------------------------
Reporter: jas | Owner: rlaager
Type: defect | Status: new
Milestone: | Component: pidgin (gtk)
Version: 2.4.2 | Resolution:
Keywords: |
--------------------+-------------------------------------------------------
Changes (by rekkanoryo):
* owner: => rlaager
Old description:
> 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.
New description:
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.
--
Comment:
I'm not sure listing us as XHTML 1.1 is appropriate, but I don't see the
harm in adding information to make the log files well-formed. What are
your thoughts, rlaager?
--
Ticket URL: <http://developer.pidgin.im/ticket/7510#comment:1>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list