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 » Scandinavian char not getting displayed properly in Email

Post new topic  Reply to topic
 Scandinavian char not getting displayed properly in Email « View previous topic :: View next topic » 
Author Message
Ammu509
PostPosted: Wed Jul 08, 2020 7:28 am    Post subject: Scandinavian char not getting displayed properly in Email Reply with quote

Newbie

Joined: 27 Jun 2016
Posts: 9

I know this topic would have been discussed earlier, I tried multiple suggestions found online but nothing helped so posting my query:

I am trying to send an Email from App Connect using EmailOutputNode. In the email bodypart character 'ä' is getting displayed as '?'.

This is the code i am using:
SET OutputRoot.EmailOutputHeader.To = 'abc@domain.com';
SET OutputRoot.EmailOutputHeader.From = 'xyz@domain.com';
SET OutputRoot.EmailOutputHeader.Subject = 'SubjectLine';
SET OutputRoot.BLOB.BLOB = CAST('yrittää' AS BLOB CCSID 1208);

Please suggest me ways to resolve this issue.
Back to top
View user's profile Send private message
timber
PostPosted: Wed Jul 08, 2020 9:51 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

Quote:
character 'ä' is getting displayed as '?'
The output from App Connect is probably correct. Display issues are often caused by incorrect rendering of characters.
The only way to be sure is to check the raw bytes of the output. You could use this to help you: http://www.ltg.ed.ac.uk/~richard/utf-8.html
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jul 08, 2020 10:41 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

timber wrote:
Quote:
character 'ä' is getting displayed as '?'
The output from App Connect is probably correct. Display issues are often caused by incorrect rendering of characters.
The only way to be sure is to check the raw bytes of the output. You could use this to help you: http://www.ltg.ed.ac.uk/~richard/utf-8.html





You should also verify that CCSID contains the character you're trying to display and that whatever is being used to display the email body likewise does.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
timber
PostPosted: Wed Jul 08, 2020 12:40 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

Quote:
You should also verify that CCSID contains the character you're trying to display
In this case the encoding is 1208 (UTF- so it contains all Unicode characters.
Quote:
and that whatever is being used to display the email body likewise does
Agreed - not all applications know how to display all Unicode characters.

It's also possible that the receiving application has converted the incoming UTF-8 into some other CCSID before attempting to display it. That would certainly cause symptoms like this.
Back to top
View user's profile Send private message
Ammu509
PostPosted: Wed Jul 08, 2020 5:42 pm    Post subject: Reply with quote

Newbie

Joined: 27 Jun 2016
Posts: 9

I tried the same code in WMB version 8 and it displays special characters properly. Also ''Subject' of email will show special characters properly. Problem is only in Body part of email.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jul 09, 2020 4:48 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Ammu509 wrote:
I tried the same code in WMB version 8 and it displays special characters properly. Also ''Subject' of email will show special characters properly. Problem is only in Body part of email.

What's the CCSID on your OutputRoot.Properties ?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Ammu509
PostPosted: Thu Jul 09, 2020 6:54 am    Post subject: Reply with quote

Newbie

Joined: 27 Jun 2016
Posts: 9

CCSID I am setting is 1208.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Tue Jul 14, 2020 10:15 am    Post subject: Re: Scandinavian char not getting displayed properly in Emai Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

Ammu509 wrote:
I am trying to send an Email from App Connect using EmailOutputNode. In the email bodypart character 'ä' is getting displayed as '?'.

This is the code i am using:
Code:
-- ...
SET OutputRoot.BLOB.BLOB = CAST('yrittää' AS BLOB CCSID 1208);

If that is a literal string embedded in an esql file, then the CAST CCSID parameter needs to match the esql file encoding: Toolkit -> Window -> Preferences -> General -> Workspace -> Text file encoding .

What is the Text file encoding set to?

If there are multiple users writing the esql file from different workspaces, then they should all use the same file encoding.

If the above esql is just a test case, and the email body is coming from somewhere else, then please provide more information about that, including the input CCSID.
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 » Scandinavian char not getting displayed properly in Email
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.