Hello Melanie and 9Val,

> Subject: Re: Preview f=?ISO-8859-1?B?/A==?=r die Reiseseite

As  I  see, the problem is when after decoding you have some character
left... I mean, MIME coding stores 3 bytes using 4 byte (more details:
http://www.helpdesk.umd.edu/topics/email/protocols/315/   ),  in  this
case, /A== stores only one.

So, /A== decodes to ( /=63, A=0, = are "pads", signals the end of
encoding)

63, 0, that is in binary form:
111111 000000
that is if we group them as 8bit bytes:
11111100 0000
that is in decimal:
252, 0

Character 252 is: ΓΌ

I dont know, how the encoding is done in TB!, but if I would do it I
would assign 0 to "=", decode that 3 bytes to 4 bytes, and stop
outputing chars to the output string if I find a char 0 amongst
them...

That extra character at the end must come from some predefinition of
the output string length, so put a check after the encoding that runs
through the string and cut the end if the char is 0...

-- 
Vili


________________________________________________________
 Current beta is 3.61.14 (Echo) | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/

Reply via email to