<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/discussions/f/integrations/5607/i-am-calling-a-rule-to-generate-a-set-of-data-which-is-being-send-over-a-jms-que</link><description>I am calling a rule to generate a set of data which is being send over a JMS Queue. It seems the output of the rule is ANSI encoded, but I want it to be UTF-8. Is there a way to enforce UTF-8 encoding for rules? OriginalPostID-161427 OriginalPostID-1</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/thread/21370?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2015 05:05:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68aa93c2-2579-4828-9043-2a04bbbff41e</guid><dc:creator>Eduardo Fuentes</dc:creator><description>Oh! Good to know. Happy to hear it wasn&amp;#39;t the Appian side.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/thread/21325?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 16:41:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b2444f87-07d3-4d57-a5f5-12e5fbc40b18</guid><dc:creator>moritzw</dc:creator><description>Turned out the editor of the receiving side was just not set right to display the UTF-8 characters correctly. Doh!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/thread/21317?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 12:13:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2f4fc898-8a70-488b-81eb-5870980197ab</guid><dc:creator>Eduardo Fuentes</dc:creator><description>Pretty sure that&amp;#39;s what needs to be &amp;quot;fixed&amp;quot;.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/thread/21316?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 12:12:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ef14281-6098-4ab7-8f02-556f8fad46d5</guid><dc:creator>moritzw</dc:creator><description>OK. So maybe it&amp;#39;s the smart service which sends the JMS then?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/thread/21315?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 12:11:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5b46fe7-d68d-4acc-955e-396bfa3c5be3</guid><dc:creator>Eduardo Fuentes</dc:creator><description>I am surprised because a regular function should be returning plain text with nothing associated to it, it might be the smart service where you are using this and not the rule what is setting the encoding.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/thread/21314?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 12:09:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2232314e-4c97-4111-a2d0-e53fdac6622a</guid><dc:creator>moritzw</dc:creator><description>No, before I was just using a regular function. I am just thinking that this will probably only work if the encoding ist ISO_8859_1. Would be good to find out somehow which encoding the regular function returns.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/thread/21312?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 11:47:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f445b90-5710-41b4-a67a-302ae8d57147</guid><dc:creator>Eduardo Fuentes</dc:creator><description>Is that how you were initially returning the string? with a custom function? &lt;br /&gt;&lt;br /&gt;Your function should do the trick.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/thread/21310?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 11:42:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11aa6279-e330-4cb9-a75d-82c2ee8b7d95</guid><dc:creator>moritzw</dc:creator><description>OK. Thanks. I&amp;#39;ll try now with this custom function:&lt;br /&gt;&lt;br /&gt;@Function&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public String  convertStringToUtf8(ServiceContext sc, @Parameter String string) throws AppianException {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;byte ptext[] = string.getBytes(ISO_8859_1); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String utf8String = new String(ptext, UTF_8); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return utf8String;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/thread/21308?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 11:22:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:102814e9-4f17-4f17-a2a2-f253dc95a26f</guid><dc:creator>Eduardo Fuentes</dc:creator><description>I don&amp;#39;t think this setting applies to your environment unless you&amp;#39;re using JBoss. This setting is to ensure that the application server receives the request parameters in the correct encoding from client requests.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/thread/21304?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 11:00:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:31d655cd-a2bf-4ba2-aa99-167dc849634a</guid><dc:creator>moritzw</dc:creator><description>The property you mentioned is not in the installation notes, is it? Which parts of the application does it affect?&lt;br /&gt;&lt;br /&gt;Thanks, Moritz&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/thread/21303?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 10:57:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c90af9e-8bd0-41a4-9a48-093da92d111a</guid><dc:creator>moritzw</dc:creator><description>The rule is generating an input for a CSV file.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/thread/21286?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 05:59:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2a37807-efa8-49c5-9134-0ef58bbc0525</guid><dc:creator>Eduardo Fuentes</dc:creator><description>1. What about this other one:&lt;br /&gt;&lt;br /&gt;-Dorg.apache.catalina.connector.URI_ENCODING=UTF-8&lt;br /&gt;&lt;br /&gt;do you have it in the app server settings?&lt;br /&gt;&lt;br /&gt;2. What is the type of output the rule is generating?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am calling a rule to generate a set of data which is being send over a JMS Que</title><link>https://community.appian.com/thread/21236?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2015 18:46:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4451530f-cf1f-4504-a80d-3f2e7c57d0ad</guid><dc:creator>moritzw</dc:creator><description>PS: -Dfile.encoding=UTF-8 is set on the application server&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>