ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to display chines characters in Email body

Post new topic  Reply to topic
 How to display chines characters in Email body « View previous topic :: View next topic » 
Author Message
mahesh2069
PostPosted: Mon Oct 27, 2014 12:56 am    Post subject: How to display chines characters in Email body Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Mon Oct 27, 2014 3:30 am    Post subject: Reply with quote

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
View user's profile Send private message
mahesh2069
PostPosted: Mon Oct 27, 2014 4:53 am    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Mon Oct 27, 2014 4:58 am    Post subject: Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Mon Oct 27, 2014 4:58 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Mon Oct 27, 2014 5:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to display chines characters in Email body
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.