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
Component takes LF as CRLF
Re: Component takes LF as CRLF
Hi olumosco,
Which data coding and mapped encoding did you use?
https://docs.inetlab.com/smpp/articles/ ... oding.html
Which data coding and mapped encoding did you use?
https://docs.inetlab.com/smpp/articles/ ... oding.html
Re: Component takes LF as CRLF
Hi alt,
I used "Default SMSC Encoding" for data coding.
I did not specify anything for mapped encoding.
I used "Default SMSC Encoding" for data coding.
I did not specify anything for mapped encoding.
alt wrote: ↑Mon Feb 19, 2018 10:12 pmHi olumosco,
Which data coding and mapped encoding did you use?
https://docs.inetlab.com/smpp/articles/ ... oding.html
Re: Component takes LF as CRLF
Thank you olumosco.
I have reproduces this issue. I'll try to fix it in the next release.
I have reproduces this issue. I'll try to fix it in the next release.
Re: Component takes LF as CRLF
Hi olumosco,
My test was wrong. So I cannot reproduce your case.
Following test code works correct:
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
I can confirm your analysis is correct. The component works correctly.
Thank you.
Thank you.