Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-983

Problems with TextLineDecoder and special characters

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.8
    • Component/s: None
    • Labels:
      None
    • Environment:
      Apache Mina 2.0.7

      Description

      Hey guys,

      we have special characters in our messages like "ΓΌ" or "$" and it seems there is a problem in the TextLineDecoder.

      I debugged the "decodeAuto" method and my question is: Why do you use "buffer.array()" instead of "buffer.toString()"?

      Problem is the array is 1 element too long so "buffer.array()" gives out a blank char at the end. "buffer.toString()" pays attention to "buffer.limit" so the string has perfect size.

      We made a workaround to trim it afterwards but maybe you wanted to know this?

      Greetings,
      Natascha

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nbrell Natascha
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: