Author |
Message
|
mahesh2069 |
Posted: Mon Oct 27, 2014 12:56 am Post subject: How to display chines characters in Email body |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
Hi ,
I am trying to display email body contain English and Chines language.
My flow contain
MQ Input Node --> JCN Node --> EMail Output Node
In JCN node I am dynamically add email body contain English and Chines language, While in debug chines and English data display correctly
While I am added body content I am change to byte[] with encode format as UTF-8.
Code: |
byte[] emailBodyInBlob = emailBody.getBytes("UTF-8");
|
but I am cannot get proper data in body content, Can you give me suggestion to resolve issue. _________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
kimbert |
Posted: Mon Oct 27, 2014 3:30 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
but I am cannot get proper data in body content |
Are you sure that the data is wrong? Often the data is correct but the viewer displays the characters incorrectly. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
mahesh2069 |
Posted: Mon Oct 27, 2014 4:53 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
Hi kimbert,
We got data ,but instead chines data got special characters. _________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Oct 27, 2014 4:58 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
mahesh2069 wrote: |
Hi kimbert,
We got data ,but instead chines data got special characters. |
How do you know that are special characters and not chinese?
Have you browsed the messages on the input queue before your flows read them? Use a utility such as amqsbcg. Then you will get the raw (hex) values.
If you are using a GUI is the GUI capable of reading and inderstanding Chinese characters? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Oct 27, 2014 4:58 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
I said:
Quote: |
Often the data is correct but the viewer displays the characters incorrectly |
Are you saying that this is not happening? _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Oct 27, 2014 5:09 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Email messages are MIME documents.
MIME documents, like MQ messages, include parts that each have individual headers. Each individual header has information describing the *contents* of the part (unlike MQ, where the header describes the contents of the *next* part).
So first check that the email client you're using or whatever you're using to view the data isn't mangling it.
THEN check that the headers for the Body part accurately describe the actual contents. |
|
Back to top |
|
 |
|