Menu

Character problem on instance variable

Developers
Beslan
2012-02-14
2013-03-11
  • Beslan

    Beslan - 2012-02-14

    Hi,

    We have got a problem with one of our instance variable. Its contains text data and when data length over 400 characters its corrupting some characters.

    Have you any suggestions?

    Regards,

    Beslan

     
  • Dofs

    Dofs - 2012-02-14

    Hi.
    I could not reproduce problem.

    String variables with length over 255 characters are persist as byte arrays.
    Encoding used for transformations between string and byte array is system default.
    So you can try to change it and see result.
    For example
    By setting the (Windows) environment variable JAVA_TOOL_OPTIONS to -Dfile.encoding=UTF8.

     
  • Beslan

    Beslan - 2012-02-15

    Thanks for advice.  I think this is the problem.

     

Log in to post a comment.