Re: [Evolution] displaying mail source bug?



On Mon, 2003-04-07 at 17:39, Dan Winship wrote:
View / Message / Source  cannot display the test string with the 8859-15
chars. Instead I get 'test ??? ?'.

Is this a bug, shall I file it? Or can anyone explain that? ;-)

It's not a bug. When displaying as source, the Content-Type header is
not interpreted, so Evolution doesn't know what encoding the characters
are in, so it shows them as "?". "View Source" is mostly for looking at
the headers and MIME structure. The content will be fully un-decoded,
and often not very readable.

Thanks, Dan, I think I understand that.

You say, when viewing a mail as source, the charset value will not be
evaluated. Which character set is used then?

It feels like 7 bit ANSII and every character not fitting into those 7
bit is replaced by a '?' char. Is that true?

The reason why I come up with that: As you said just some minutes
before, the Euro symbol really is a 0xA4 byte. That byte and even the
German chars äöü are not only _displayed_ as '?', they are _replaced_. I
verified that by copying the same string to gedit.


As you explained it above, the reason for viewing as source is
displaying the headers, not the body. So there is nothing wrong with
that. Just wondering, why chars apparently get substituted in the body
string opposed to just let them untouched and as-is. Isn't that extra
work?

...guenther


Dammit, it gets obvious, I take every single chance to avoid learning.
Will creep back to my books. Why isn't there a net shortage when I would
need it?


-- 
char *t="\10pse\0r\0dtu\0  ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]