Hi guys,
How can I pass special characters like ã, á ou ç, when I return an error to the Content Server?
Just by returning "Olá", I get the last character wrong.
Best regards,
If you use a properties file to define an XLate for your error message, then you can Unicode escape the accented characters in the properties file.
There are examples of this in the OpenText language pack properties files.
If you’re hardcoded the string in your code, Builder cannot handle UTF-8 characters in the GUI, so whatever you’re pasting in will be represented as ASCII in the string instead of with a UTF-8 encoding. Strings in a UTF-8 Content Server environment must be UTF-8 encoded for them to be parsed and rendered correctly. If you must hardcode it within Builder, you have to represent the UTF-8 encoding of that character in a byte array and then convert it to a string.