Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-1815

tcpmon don't support mulit-byte encording

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2RC2
    • None
    • None
    • None

    Description

      I am a user of tcpmon(TCP Monitor) in Japan.
      This tool is very cool.
      but... when I use mulit-byte character in SOAP-Request/Response XML,
      tcpmon don't work well.(ex. Kanji character can't be displayed.)

      In my environment, I change the code like this.
      #tcpmon.SocketRR.run() method line 761-769
      --------------------------------------------before
      textArea.append( new String( tmpbuffer, 0, i2 ) );
      // Shift saved bytes to the beginning
      for ( i = 0 ; i < saved ; i++ )

      { buffer[i] = buffer[bufferLen - saved + i]; }

      }
      else

      { textArea.append( new String( buffer, 0, len ) ); }

      ---------------------------------------------after
      textArea.append( new String( tmpbuffer, 0, i2 , soapEncording) );
      ^^^^^^^^^^^^^
      // Shift saved bytes to the beginning
      for ( i = 0 ; i < saved ; i++ )

      { buffer[i] = buffer[bufferLen - saved + i]; }

      }
      else

      { textArea.append( new String( buffer, 0, len , soapEncording) ); ^^^^^^^^^^^^^ }

      --------------------------------------------------
      I think tcpmon should check xml encording attribute.
      (ex. <?xml version="1.0" encoding="utf-8" standalone="yes"?>)
      ^^^^^^^^^^^^^^^^

      bye.

      Attachments

        Activity

          People

            kimuratsy@nttdata.co.jp Toshiyuki Kimura
            t-ushio Tuyoshi Ushio
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: