On Mon, Aug 18, 2008 at 4:06 PM, Chandrajeet Padhy <[EMAIL PROTECTED]> wrote: > I am running into a problem while using mina as the communication library to > connect over TCP/IP to a server. > Each time I send a message by writing to the ioSession object it sends it to > the other end but it appends a "0A" at the end of the message. > > eg I tried to write the text " 333 0J SIMB#1 " but the text that is sent is > INFO: [/192.168.1.16:5004] SENT: HeapBuffer[pos=0 lim=19 cap=32: 1C 33 33 32 > 1F 46 49 1D 53 49 4D 42 23 49 4E 46 4F 1C *0A*] > > Look at the last hex character "0A" which is a null character I believe gets > appended. How can I correct this. This is usual for whatever I send.
0A is not a null character but rather a line ending. How do you write the message to the session and do you have any encoder in place? /niklas
