rvhtmlimport bug when importing richview exported messages
Posted: Wed Nov 01, 2006 4:52 pm
Ok it is not strictly only when importing messages created by richview, it can happen on every html that uses htmlentites e.g etc.
The problem is in ConvertCData function, which MUST return utf8 encoded character (usually more than one byte), if message is encoded in utf8.
You need to remove space I inserted between & #, for forum not to change code.
Regards,
Miha
The problem is in ConvertCData function, which MUST return utf8 encoded character (usually more than one byte), if message is encoded in utf8.
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title> composed message</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
margin: 5px 5px 5px 5px;
background-color: #ffffff;
}
/* ========== Text Styles ========== */
hr { color: #000000}
body, table /* Normal text */
{
font-size: 10pt;
font-family: 'Arial';
font-style: normal;
font-weight: normal;
color: #000000;
text-decoration: none;
}
span.rvts1
{
font-weight: bold;
}
span.rvts2
{
font-style: italic;
}
span.rvts3
{
font-family: 'Bitstream Vera Sans';
font-style: italic;
}
span.rvts4
{
font-family: 'Bitstream Vera Sans';
}
span.rvts5
{
font-family: 'Bitstream Vera Sans';
font-style: italic;
color: #008000;
}
span.rvts6
{
background-color: #0000ff;
}
span.rvts7
{
color: #ffff00;
background-color: #0000ff;
}
/* ========== Para Styles ========== */
p,ul,ol /* Paragraph Style */
{
text-align: left;
text-indent: 0px;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
text-align: center;
}
--></style>
</head>
<body>
</body></html>
Regards,
Miha