I am calling a rule to generate a set of data which is being send over a JMS Que

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
  • 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;
              }
Reply
  • 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;
              }
Children
No Data