BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

Serializer mistake with special accented characters

  • 1.  Serializer mistake with special accented characters

    Posted Tue October 13, 2020 05:44 AM

    Hi All,

    In the Hungarian language we have four special characters: ő, Ő, ű and Ű. BAW handles they normally, so we can enter them into the fields, we can see them in single selects, etc.

    But when we use tw.system.serializer.toXml to serialize our business data, we get a question mark in the place of these characters like this:

    Őry Ágnes -> ?ry Ágnes
    Űrlap -> ?rlap
    árvíztűrő -> árvízt?r?

    How could we solve this problem? How to get special characters correctly in the string produced by tw.system.serializer.toXml?

    Thx,



    ------------------------------
    ____________________
    Laszlo
    ------------------------------


  • 2.  RE: Serializer mistake with special accented characters

    Posted Tue October 13, 2020 09:38 AM
    This is Java String (UTF-16) so Hungarian characters are for sure encoded properly.
    You might see question marks only when you try to print it in non-UTF console.
    But internally all characters are there.
    If you want to enable your console with UTF-encoding set:
    -Dfile.encoding=UTF-8 -Dclient.encoding.override=UTF-8 -Ddefault.client.encoding=UTF-8 -Djava.nio.charset.Charset=UTF-8
    as JVM parameter.

    ------------------------------
    Sebastian Tylko
    ------------------------------



  • 3.  RE: Serializer mistake with special accented characters

    Posted Tue October 13, 2020 01:13 PM
    Edited by Laszlo Kertesz Tue October 13, 2020 01:25 PM
    Hi Sebastian,

    Thanks for your answer.

    Lazlo