gb2312 encoded header display wrong

NEW
Unassigned

Status

--
major
14 years ago
9 years ago

People

(Reporter: admin, Unassigned)

Tracking

({intl})

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

Subject: =?gb2312?Q?Re:java=D7=F7=D2=B5_03_=3D??=
	=?gb2312?Q?gb2312?Q?281283_=3D?=
	=?gb2312?Q?E5=3DAD=3D99=3DE5=3DAE=3D87?=
	=?gb2312?Q?=3DE8=3D81??=3D_size=3D?=
Message-ID: <1114060849.426738314e9c7@mail.njtu.edu.cn>
Date: Thu, 21 Apr 2005 13:20:49 +0800
From: =?gb2312?Q?=D0=EC=B1=A3=C3=F1?= <....>

I captured it from one of my email source
node there's many =?gb2312?xxx?= pairs in the text above
thunderbird can only display the first part of those many =?gb2312 lines.
the others are displaied wrongly,or displaie un-uncodely...

Reproducible: Always

Steps to Reproduce:
1.receive such mail
2.see


Actual Results:  
it display in subject field
?gb2312?Q?Re:java=D7=F7=D2=B5_03_=3D??= =?gb2312?Q?gb2312?Q?281283_=3D?=
E5=AD=99=E5=AE=87 =?gb2312?Q?=3DE8=3D81??=3D_size=3D?=


Expected Results:  
should display in chinese

this can often be improved by rewriting the gb2312 decoding programe

Comment 1

14 years ago
Reproduced with TB 1.0+0414, Win2K.  The header looks correctly formatted to me; 
Jungshik, is there a problem using Q encoding for 2047 with Asian charsets?  All 
the examples I have that work use B encoding.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: intl
OS: Windows XP → Windows 2000
(Reporter)

Comment 2

14 years ago
B Encoding with Asian characters also have bug
this is my another mail which subject is

Subject: =?ISO-8859-1?B?Q2hpbmFSZW7Qo9PRwrw6ufOw4NPQ0MI=?=
 =?ISO-8859-1?B?s8nUsbzTyOssv+zIpbTyuPbV0Lr0sMkh?=
and it's result is

ChinaRen&#208;&#163;&#211;&#209;&#194;&#188;:&#185;иобуид&#211;&#208;&#208;&#194;&#179;&#201;&#212;б└&#188;&#211;&#200;&#235;,&#191;им&#200;&#165;&#180;и░&#184;&#246;&#213;&#208;&#186;&#244;бу&#201;!

which should be display in chinese also.

what does it actually mean?I have searched in source code,but I can't decide
where to solve this problem.I think this is a major problem with chinese
users.Thank you.

Comment 3

14 years ago
(In reply to comment #1)
> Reproduced with TB 1.0+0414, Win2K.  The header looks correctly formatted to me; 
> Jungshik, is there a problem using Q encoding for 2047 with Asian charsets?  

EIther B or Q can be used. Usually, B encoding is more efficient for a string
with  8bit octets taking more than a certain fraction, but quite a lot of MUAs
don't check which one is more efficient for a given  string and just use Q
encodings for all cases. I'll take a look what's wrong with our code. 

I'm taking it

Assignee: mscott → jshin1987
(Reporter)

Comment 4

14 years ago
just ask :) , how is it going ?
I want to see If there's something I can do.
:)
QA Contact: front-end

Comment 5

11 years ago
read the encoded words again and you'll see something funny ;-)

Subject: =?gb2312?Q?Re:java=D7=F7=D2=B5_03_=3D??=
        =?gb2312?Q?gb2312?Q?281283_=3D?=
        =?gb2312?Q?E5=3DAD=3D99=3DE5=3DAE=3D87?=
        =?gb2312?Q?=3DE8=3D81??=3D_size=3D?=

The end of the first enc-word decodes to "=?"
the beginning of the second enc-word decodes to: "gb2312?Q?..."

see the problem? :)

hint: these encoded-words decode to more encoded-words.

Updated

11 years ago
Assignee: jshin1987 → smontagu
still reproduces afaict
Assignee: smontagu → nobody
Component: Mail Window Front End → Message Reader UI
QA Contact: front-end → message-reader
You need to log in before you can comment on or make changes to this bug.