rvhtmlimport bug when importing richview exported messages

General TRichView support forum. Please post your questions here
Post Reply
krho
Posts: 33
Joined: Wed Nov 01, 2006 10:17 am

rvhtmlimport bug when importing richview exported messages

Post by krho »

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.

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>
You need to remove space I inserted between & #, for forum not to change code.

Regards,
Miha
Last edited by krho on Mon Dec 18, 2006 12:19 pm, edited 1 time in total.
Sergey Tkachenko
Site Admin
Posts: 17534
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Fixed version is uploaded
Post Reply