Double Byte Char.

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Phantasmagoria
Advanced member
Advanced member
Posts: 95
Joined: Fri Sep 12, 2014 9:56 pm

Double Byte Char.

Postby Phantasmagoria » Mon Feb 27, 2006 7:18 pm

I know Zimbra using UTF-8 as encoding...but some double byte char...like Chinese still display trash at subject and body...will Zimbra have more improve on it? Like when I right-click the message body it is fixed/grey the UTF-8 and cannot change it.


bobby
Zimbra Employee
Zimbra Employee
Posts: 515
Joined: Fri Sep 12, 2014 10:01 pm

Double Byte Char.

Postby bobby » Mon Feb 27, 2006 8:02 pm

can you attach the full mime message here? right click on the message in the list and select "Show Original" and it should pop up the message in a new window
thanks
14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

Double Byte Char.

Postby 14319KevinH » Mon Feb 27, 2006 8:12 pm

Can you attach a screen shot as an example?
Phantasmagoria
Advanced member
Advanced member
Posts: 95
Joined: Fri Sep 12, 2014 9:56 pm

Double Byte Char.

Postby Phantasmagoria » Thu Mar 02, 2006 12:53 am

Like this subject is...

Fw:=?BIG5?B?IDQ2IK3TpKOlaaSjqr6qurFgw9E=?=
Received: from localhost (localhost.localdomain [127.0.0.1])

by abc.com (Postfix) with ESMTP id D6581160A8E

for ; Thu, 2 Mar 2006 14:35:51 +0800 (HKT)

Received: from abc.com ([127.0.0.1])

by localhost (abc.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP

id 26730-04 for ;

Thu, 2 Mar 2006 14:35:45 +0800 (HKT)

Received: from xyz.com (unknown [218.191.195.169])

by abc.com (Postfix) with ESMTP id 122DB160A6E

for ; Thu, 2 Mar 2006 14:35:45 +0800 (HKT)

Received: from xyz.com (localhost.localdomain [127.0.0.1])

by xyz.com (8.13.1/8.13.1) with ESMTP id k226YLWt003095

for ; Thu, 2 Mar 2006 14:34:21 +0800

From: "ming"

To: myvip@xyz.com

Subject: Fw:=?BIG5?B?IDQ2IK3TpKOlaaSjqr6qurFgw9E=?=

Date: Thu, 2 Mar 2006 15:34:21 +0900

Message-Id:

In-Reply-To:

References:

X-Mailer: Open WebMail 2.51 20050410

X-OriginatingIP: 202.45.83.10 (ming)

MIME-Version: 1.0

Content-Type: text/plain;

charset=big5

X-Virus-Scanned: amavisd-new at

X-Spam-Status: No, score=-0.252 tagged_above=-10 required=6.6 autolearn=no

tests=[BAYES_00=-2.599, UNIQUE_WORDS=2.347]

X-Spam-Score: -0.252

X-Spam-Level:


---------- Forwarded Message -----------

From: Steven Chow

To: undisclosed-recipients: ;

Sent: Thu, 2 Mar 2006 12:08:21 +0800 (HKT)

Subject: 46 個不可不知的常識
46 個不可不知的常識
1... 常吃宵夜. 會得胃癌.因為胃得不到休息

2... 一個星期只能吃四顆蛋 .吃太多 .對身體不好

3... 雞屁股含有致癌物, 不要吃較好

4... 飯後吃水果是錯誤的觀念 .應是飯前吃水果

5... 女生月經來時 .不要喝綠茶. 反正茶類不要喝就對了. 多吃可以補血的東西

6... 喝豆漿時不要加雞蛋及糖 .也不要喝太多

7... 空腹時不要吃蕃茄 ,最好飯後吃

8... 早上醒來. 先喝一杯水. 預防結石

9... 睡前三小時不要吃東西 .會胖

10.. 少喝奶茶 .因為高熱量. 高油. 沒有營養價值可言.長期飲用 .易罹患高血壓 .糖尿病 .

等疾病

11.. 剛出爐的麵包不宜馬上食用

12.. 遠離充電座. 人體應遠離30公分以上 .切忌放在床邊

13.. 天天喝水八大杯

14.. 每天十杯水. 膀胱癌不會來

15.. 白天多喝水.晚上少喝水

16.. 一天不要喝兩杯以上的咖啡 .喝太多易導致失眠 ,胃痛

17.. 多油脂的食物少吃. 因為得花5~7小時去消化 ,並使腦中血液 集中到腸胃 .易昏昏欲睡

18.. 下午五點後. 大餐少少吃,因為五點後身體不需那麼多能量

19.. 10種吃了會快樂的食物 :深海魚 ,香蕉 ,葡萄柚, 全麥麵包, 菠菜,大蒜 ,南瓜 ,低脂牛

奶, 雞肉,櫻桃

20.. 睡眠不足會變笨 ,一天須八小時睡眠 ,有午睡習慣較不會老

21.. 最佳睡眠時間是在晚上10 點~ 清晨6點

22.. 每天喝酒不要超過一杯 ,因為酒精會抑制製造抗體的B 細胞,增加細菌感染的機會

23.. 服用膠囊應以冷水吞服 (可以第一個吃 ),睡前 30分先服葯. 忌立即躺下

24.. 酸梅具防止老化作用,青春永駐 ;肝火有毛病者宜多食用

25.. 掉髮因素 :熬夜, 壓力,菸酒 ,香雞排 .麻辣鍋 .油膩食物. 調味過重的料理

26.. 幫助頭髮生長:多食用包心菜 ,蛋 .豆類 ;少吃甜食( 尤其是果糖)

27.. 每天一杯檸檬汁,柳橙汁 .不但可以美白還可以淡化黑斑

28.. 蘋果是機車族、癮君子、家庭主婦的常備良葯,一天一顆,才能讓自己有個乾乾淨淨的

肺

29.. 抽煙又吃維他命 (B胡蘿蔔素-A 維他命的一種), 會致癌,儘早戒煙 .才是最健康的做法

30.. 女性不宜喝茶的五個時期 :月經來時, 孕婦,臨產前 .生產完後 ,更年期

31.. 抽煙, 關係最大的是肺癌, 唇癌, 舌癌,喉癌 ,食道癌 ,也與膀胱癌有關

32.. 飲酒導致肝硬化. 引發肝癌

33.. 吃檳榔會導致口腔纖維化, 口腔癌

34.. 食物過於精細 ,缺乏纖維 ;含大量脂肪 ,尤其是膽固醇會引發胃癌

35.. 食物過於粗糙, 營養不足時導致食道癌,胃癌

36.. 食品中的黃麴毒素 .亞硝酸類物皆具有致癌性

37.. 不抽煙. 拒吸二手煙

38.. 適量飲酒, 不拚久.不醉酒

39.. 減少食用鹽腌 .煙薰, 燒烤的食物

40.. 每天攝取新鮮的蔬菜與水果

41.. 每天攝取富含高纖維的五穀類及豆類

42.. 每天攝取均衡的飲食 ,不過量

43 維持理想體重 .不過胖

44.. 保持規律的生活與運動

45.. 保持輕鬆愉快的心情

46.. 正確飲食習慣: 早上吃的像皇帝, 中午吃的像平民, 晚上吃的像乞丐

------- End of Forwarded Message -------
14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

Double Byte Char.

Postby 14319KevinH » Fri Mar 03, 2006 1:59 pm

JavaMail doesn't allow encoded-words not separated from the previous text by a space. (I assume that's what RFC 2047 says, but I'm not sure.) So if the Subject had been written as
Fw: =?BIG5?B?IDQ2IK3TpKOlaaSjqr6qurFgw9E=?=
(note the space after the colon), it would have been properly displayed.
Phantasmagoria
Advanced member
Advanced member
Posts: 95
Joined: Fri Sep 12, 2014 9:56 pm

Double Byte Char.

Postby Phantasmagoria » Sun Mar 05, 2006 9:30 am

And this...

doc1.txt

14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

Double Byte Char.

Postby 14319KevinH » Sun Mar 05, 2006 11:01 pm

This message has problems, Dan made the following points:
The Subject claims that it's US-ASCII, not Chinese:
Subject: =?us-ascii?Q?FW=3A_=24U=7C=2C=3FU=3F=5E=2DE=3FE_=3FO=3Fo=3FY=3F?=

=?us-ascii?Q?U=21?=
The body also claims it's US-ASCII:
Content-Type: text/plain; charset="us-ascii"
The message *isn't* US-ASCII, but it explicitly claims to be. We're not second-guessing the charset at present.
Phantasmagoria
Advanced member
Advanced member
Posts: 95
Joined: Fri Sep 12, 2014 9:56 pm

Double Byte Char.

Postby Phantasmagoria » Sun Mar 05, 2006 11:51 pm

But this email body msg also cannot see...
I found...


What is 3Dbig5???
14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

Double Byte Char.

Postby 14319KevinH » Mon Mar 06, 2006 12:00 am

[quote user="Phantasmagoria"]But this email body msg also cannot see...
I found...


What is 3Dbig5???[/QUOTE]
=3D is just = that is encoded. Yes it refers to big5 but it's still not valid to represent that the mail is us-ascii when it's not.
Phantasmagoria
Advanced member
Advanced member
Posts: 95
Joined: Fri Sep 12, 2014 9:56 pm

Double Byte Char.

Postby Phantasmagoria » Mon Mar 06, 2006 12:07 am

Previously I am using Opxnwxbmail. So I use pop3 get this mail to Opxnwxbmail, it still display trash and cannot encoding, but it have a attachment .htm, after open it, it is a same msg and trash too, but when I right click and choose Big5 encoding, it works! Any idea?

Return to “Developers”

Who is online

Users browsing this forum: No registered users and 1 guest