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 » Changing encoding of a file inside broker

Post new topic  Reply to topic
 Changing encoding of a file inside broker « View previous topic :: View next topic » 
Author Message
maven
PostPosted: Wed Feb 25, 2009 12:41 am    Post subject: Changing encoding of a file inside broker Reply with quote

Novice

Joined: 03 Jun 2007
Posts: 15

hi,

I wanted to change the enoding of a file from UTF-8 to ANSI inside broker.
Source system sends xml file with UTF-8 encoding, broker converts the message to flatfile and sends to the target system.
Target system has constraint while receiving foreign character message in UTF-8 format and reads it in double bye and it is a product limitation. So i wanted to send the message to target system having encoding as ANSI.
I tried parsing the messages again CCSID 819 in broker but the encoding doesnt change.
Can u please suggest me regarding this issue.
Back to top
View user's profile Send private message
MQEnthu
PostPosted: Wed Feb 25, 2009 1:06 am    Post subject: Reply with quote

Partisan

Joined: 06 Oct 2008
Posts: 329
Location: India

Try setting the ccsid to 367

http://www-01.ibm.com/software/globalization/ccsid/ccsid367.jsp
_________________
-----------------------------------------------
It is good to remember the past,
but don't let past capture your future
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Feb 25, 2009 1:46 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Can the target system accept UTF-16? If so, it would be a better choice. UTF-8, UTF-16 and UTF-32 can represent any Unicode character, whereas code page 819/367 or any other 'character set' can only represent a subset.
http://en.wikipedia.org/wiki/Unicode#Mapping_and_encodings
Back to top
View user's profile Send private message
rekarm01
PostPosted: Wed Feb 25, 2009 3:18 am    Post subject: Re: Changing encoding of a file inside broker Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

maven wrote:
I wanted to change the encoding of a file from UTF-8 to ANSI inside broker.
Source system sends xml file with UTF-8 encoding, broker converts the message to flatfile and sends to the target system.
Target system has constraint while receiving foreign character message in UTF-8 format and reads it in double bye and it is a product limitation. So i wanted to send the message to target system having encoding as ANSI.

It's not clear what "ANSI" is supposed to mean here, but it presumably refers to a "single byte character set".

If the source system uses a single byte character set to generate the xml message, (and converts the message to UTF-8 before sending it to the broker), then the broker can safely convert the message back to the original character set.

If the source system does not use a single byte character set to generate the XML message, then the broker would have to handle non-convertible characters some other way, before converting the message to a single byte character set.

Which character set does the source system use to generate the message (or which character sets can the source system use)?

Which character set is the target system expecting, (or which character sets can the target system accept)?

maven wrote:
I tried parsing the message again CCSID 819 in broker but the encoding doesn't change.

More details would help here.
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 » Changing encoding of a file inside broker
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.