in mimepart.DecodePart there is the following code:
if FConvertCharset and (FPrimaryCode = MP_TEXT) then
if (not FForcedHTMLConvert) and (uppercase(FSecondary) = 'HTML') then
begin
b := false;
t := uppercase(s);
t := SeparateLeft(t, '</HEAD>');
if length(t) <> length(s) then
begin
t := SeparateRight(t, '<HEAD>');
t := ReplaceString(t, '"', '');
t := ReplaceString(t, ' ', '');
b := Pos('HTTP-EQUIV=CONTENT-TYPE', t) > 0;
end;
if not b then
s := CharsetConversion(s, FCharsetCode, FTargetCharset);
end
else
s := CharsetConversion(s, FCharsetCode, FTargetCharset);
the idea is understood and its to convert the charset according to the html
and if not, do the internal charset conversion.
the problem is that the html itself does not contain the
"HTTP-EQUIV=CONTENT-TYPE" tag
so synapse tries to convert by itself from the correct charset to utf8
the result is, that instead of ' or " i get : ‘ characters. (the original
character was "=91")
if it didnt do the conversion, everything was ok, bcoz the content before the
conversion does contain ' and " chars
i understand why synapse should do the conversion but the result in this case
is an invalid character
and if im watching this email in a webmail, i do see the ' and " as it should.
is there be something to do about this?
thanks
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public