Hello EW Team,
I have a text input field in emwi.
![](https://ask.embedded-wizard.de/?qa=blob&qa_blobid=8658253168388985037)
When you press the "Finish" button, the entered text is saved in Device::Device.TestMessage and passed to my external variable.
![](https://ask.embedded-wizard.de/?qa=blob&qa_blobid=18440274761497800354)
![](https://ask.embedded-wizard.de/?qa=blob&qa_blobid=3158076643982780419)
![](https://ask.embedded-wizard.de/?qa=blob&qa_blobid=6365329062761288945)
Now I have my variable in my C code, see "XString TestMessage".
The TestMessage is now processed below.
![](https://ask.embedded-wizard.de/?qa=blob&qa_blobid=8314478914387836990)
The Line, because the picture is out of focus:
sprintf(msg, "[{\"Starttime:\": \"%s\"},{\"Endtime:\": \"%s\"},{\"Duration:\": \"%s\"},{\"Successful:\": \"%s\"},{\"Message:\": \"%S\"}]}]", startdate_buffer, enddate_buffer, duration_buffer, testsucces, TestMessage);
However, the "\n" characters are not written down.
![](https://ask.embedded-wizard.de/?qa=blob&qa_blobid=9088888429838821695)
![](https://ask.embedded-wizard.de/?qa=blob&qa_blobid=11115131637301031236)
How can I solve the problem that the "\n" characters are also there?
Best regards
Justin