# Socket send string issue

**URL:** <https://forum.universal-robots.com/t/socket-send-string-issue/19356>\
**Category:** Technical Questions\
**Created:** [February 18, 2022, 10:44am UTC](https://forum.universal-robots.com/t/socket-send-string-issue/19356 "2022-02-18T10:44:13Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![roguebuck](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/roguebuck/32/4848_2.png) [@roguebuck](https://forum.universal-robots.com/u/roguebuck)\
**Post date:** [February 26, 2022, 1:11am UTC](https://forum.universal-robots.com/t/socket-send-string-issue/19356/5 "2022-02-26T01:11:22Z")

</div>

I may be struggling with a similar issue:

I need to send a string terminated with “\r\n”, but it appears that socket\_send\_line only appends \n. I have tried concatenating “\r” to the end of my string, but the socket\_send\_line function seems to add an extra \. \<\< even right here, i had to type two backslashes to get it to display one. this is expected with escape sequences, but undesired when sending byte strings

edit: i found this today, havent tried it yet: [TCP socket line terminator](https://forum.universal-robots.com/t/tcp-socket-line-terminator/5806)

---

_[View the full topic](https://forum.universal-robots.com/t/socket-send-string-issue/19356)._
