Page 1 of 1

Component takes LF as CRLF

Posted: Fri Feb 16, 2018 7:55 am
by olumosco
I noticed the component counts LF appended to each line of my message as 2 characters (i.e CRLF) even though I specifically appended LF instead of CRLF.
Example of such message is given below which is 160 characters (if the 14 LF characters after "9" is interpreted correctly as LF). But the component sends it as multi-part.

0123456789
0123456789
0123456789
0123456789
0123456789
0123456789
0123456789
0123456789
0123456789
0123456789
0123456789
0123456789
0123456789
0123456789
012345

Re: Component takes LF as CRLF

Posted: Mon Feb 19, 2018 10:12 pm
by alt
Hi olumosco,

Which data coding and mapped encoding did you use?

https://docs.inetlab.com/smpp/articles/ ... oding.html

Re: Component takes LF as CRLF

Posted: Wed Feb 21, 2018 3:22 am
by olumosco
Hi alt,

I used "Default SMSC Encoding" for data coding.
I did not specify anything for mapped encoding.

alt wrote:
Mon Feb 19, 2018 10:12 pm
Hi olumosco,

Which data coding and mapped encoding did you use?

https://docs.inetlab.com/smpp/articles/ ... oding.html

Re: Component takes LF as CRLF

Posted: Sun Mar 11, 2018 3:11 pm
by alt
Thank you olumosco.
I have reproduces this issue. I'll try to fix it in the next release.

Re: Component takes LF as CRLF

Posted: Fri May 04, 2018 10:42 pm
by alt
Hi olumosco,

My test was wrong. So I cannot reproduce your case.

Following test code works correct:

Code: Select all

         char LF = Convert.ToChar(10);

            string text = "0123456789" + LF +
                          "0123456789" + LF +
                          "0123456789" + LF +
                          "0123456789" + LF +
                          "0123456789" + LF +
                          "0123456789" + LF +
                          "0123456789" + LF +
                          "0123456789" + LF +
                          "0123456789" + LF +
                          "0123456789" + LF +
                          "0123456789" + LF +
                          "0123456789" + LF +
                          "0123456789" + LF +
                          "0123456789" + LF + 
                          "012345";
            

            Assert.AreEqual(160, text.Length);

            EncodingMapper mapper = new EncodingMapper();
          
            IList<SubmitSm> list = SMS.ForSubmit()
                .Text(text)
                .From("1111")
                .To("2222")
                .Create(mapper);

            Assert.AreEqual(1, list.Count);

Re: Component takes LF as CRLF

Posted: Thu Jul 12, 2018 9:31 pm
by olumosco
I can confirm your analysis is correct. The component works correctly.
Thank you.