Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
13 replies
Subscribers
7 subscribers
Views
4026 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
I am calling a rule to generate a set of data which is being send over a JMS Que
moritzw
over 9 years ago
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-161427
Discussion posts and replies are publicly visible
Parents
0
moritzw
over 9 years ago
OK. Thanks. I'll try now with this custom function:
@Function
public String convertStringToUtf8(ServiceContext sc, @Parameter String string) throws AppianException {
byte ptext[] = string.getBytes(ISO_8859_1);
String utf8String = new String(ptext, UTF_8);
return utf8String;
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
moritzw
over 9 years ago
OK. Thanks. I'll try now with this custom function:
@Function
public String convertStringToUtf8(ServiceContext sc, @Parameter String string) throws AppianException {
byte ptext[] = string.getBytes(ISO_8859_1);
String utf8String = new String(ptext, UTF_8);
return utf8String;
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data