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 » exclamation mark in the Email Attachment

Post new topic  Reply to topic
 exclamation mark in the Email Attachment « View previous topic :: View next topic » 
Author Message
mpong
PostPosted: Wed Feb 10, 2016 5:43 am    Post subject: exclamation mark in the Email Attachment Reply with quote

Disciple

Joined: 22 Jan 2010
Posts: 164

Hi All,

I am reading the .xml file from the folder and sending it as an email attachment.
The input xml file encoding is UTF-8 and it does not have exclamation mark( !) in the file. When I see the email attached file contains ! as below on one of the tag randomly.

Please suggest what is going wrong here.

<Szordertyp!
e>

SET OutputLocalEnvironment.Destination.Email.Attachment[1].Content = ASBITSTREAM(InputBody CCSID 1208) ;
SET OutputLocalEnvironment.Destination.Email.Attachment[1].ContentType = 'text/xml';
SET OutputLocalEnvironment.Destination.Email.Attachment[1].ContentName = Environment.Variables.OriginalFileName;
Back to top
View user's profile Send private message
timber
PostPosted: Wed Feb 10, 2016 8:43 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

Quote:
When I see the email attached file contains !
In which program do you 'see' this? Sometimes, problems like this are not defects in the message flow. They are caused by the application that is displaying the output.
Back to top
View user's profile Send private message
mpong
PostPosted: Wed Feb 10, 2016 11:19 pm    Post subject: Reply with quote

Disciple

Joined: 22 Jan 2010
Posts: 164

The file is not opening in IE and i could see the ! character in notepad ++
Back to top
View user's profile Send private message
maurito
PostPosted: Wed Feb 10, 2016 11:31 pm    Post subject: Reply with quote

Partisan

Joined: 17 Apr 2014
Posts: 358

mpong wrote:
The file is not opening in IE and i could see the ! character in notepad ++

Can you open the original file ? i.e. the one you are reading from the folder ? if so, what does it show ?
Back to top
View user's profile Send private message
mpong
PostPosted: Thu Feb 11, 2016 5:49 am    Post subject: Reply with quote

Disciple

Joined: 22 Jan 2010
Posts: 164

Thanks for the response.

Yes, I am able to open the original file in IE and other xml validation tools. whereas the email attachment is failed.

I do not see this character in the debugger as well.
Back to top
View user's profile Send private message
mpong
PostPosted: Thu Feb 11, 2016 7:40 am    Post subject: Reply with quote

Disciple

Joined: 22 Jan 2010
Posts: 164

When I put the message in the email body, It is coming correctly.

Where as in the email attachment I see the ! character and it is causing the file failure.

Input file xml declaration is

<?xml version="1.0" encoding="UTF-8"?
Back to top
View user's profile Send private message
timber
PostPosted: Thu Feb 11, 2016 8:14 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

What value have you put in LocalEnvironment.Destination.Email.Attachment.ContentEncoding ?
It would need to be 'base64' or 'Quoted-printable 'because according to the info center:
Quote:
7bit is the default value that is used for ASCII text.
Base64 is used for non ASCII, whether non English or binary data. This format can be difficult to read.
Quoted-printable is an alternative to Base64, and is appropriate when most of the data is ASCII with some non-ASCII parts. This format is more readable; it provides a more compact encoding because the ASCII parts are not encoded.
Back to top
View user's profile Send private message
mpong
PostPosted: Thu Feb 11, 2016 11:05 pm    Post subject: Reply with quote

Disciple

Joined: 22 Jan 2010
Posts: 164

Thanks Timber!

I was using 7bit. It works well with the base64
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 » exclamation mark in the Email Attachment
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.