| Author | Message | 
		
		  | Ammu509 | 
			  
				|  Posted: Wed Jul 08, 2020 7:28 am    Post subject: Scandinavian char not getting displayed properly in Email |   |  | 
		
		  | Newbie
 
 
 Joined: 27 Jun 2016Posts: 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 |  | 
		
		  |  | 
		
		  | timber | 
			  
				|  Posted: Wed Jul 08, 2020 9:51 am    Post subject: |   |  | 
		
		  |  Grand Master
 
 
 Joined: 25 Aug 2015Posts: 1292
 
 
 | 
			  
				| 
  The output from App Connect is probably correct. Display issues are often caused by incorrect rendering of characters. 
	| Quote: |  
	| character 'ä' is getting displayed as '?' |  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 |  | 
		
		  |  | 
		
		  | Vitor | 
			  
				|  Posted: Wed Jul 08, 2020 10:41 am    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 11 Nov 2005Posts: 26093
 Location: Texas, USA
 
 | 
			  
				| 
   
	| timber wrote: |  
	| 
  The output from App Connect is probably correct. Display issues are often caused by incorrect rendering of characters. 
	| Quote: |  
	| character 'ä' is getting displayed as '?' |  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 |  | 
		
		  |  | 
		
		  | timber | 
			  
				|  Posted: Wed Jul 08, 2020 12:40 pm    Post subject: |   |  | 
		
		  |  Grand Master
 
 
 Joined: 25 Aug 2015Posts: 1292
 
 
 | 
			  
				| 
  In this case the encoding is 1208 (UTF- 
	| Quote: |  
	| You should also verify that CCSID contains the character you're trying to display |   so it contains all Unicode characters. 
 
  Agreed - not all applications know how to display all Unicode characters. 
	| Quote: |  
	| and that whatever is being used to display the email body likewise does |  
 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 |  | 
		
		  |  | 
		
		  | Ammu509 | 
			  
				|  Posted: Wed Jul 08, 2020 5:42 pm    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 27 Jun 2016Posts: 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 |  | 
		
		  |  | 
		
		  | fjb_saper | 
			  
				|  Posted: Thu Jul 09, 2020 4:48 am    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 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 |  | 
		
		  |  | 
		
		  | Ammu509 | 
			  
				|  Posted: Thu Jul 09, 2020 6:54 am    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 27 Jun 2016Posts: 9
 
 
 | 
			  
				| CCSID I am setting is 1208. |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | rekarm01 | 
			  
				|  Posted: Tue Jul 14, 2020 10:15 am    Post subject: Re: Scandinavian char not getting displayed properly in Emai |   |  | 
		
		  | Grand Master
 
 
 Joined: 25 Jun 2008Posts: 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 |  | 
		
		  |  | 
		
		  |  |