Text with break lines becomes \r \n

English! place to talk about development, programming and coding
Post Reply
drodralv
Znuny advanced
Posts: 102
Joined: 26 Jul 2019, 08:25
Znuny Version: 5.0.28

Text with break lines becomes \r \n

Post by drodralv »

Hello,

We have implemented web interface connecting via REST to OTRS.

We have now the problem that when an user is pasting values with breaklines, that becomes for example "Support\r\nAvailable" in OTRS.

However, using OTRS customer interface, that is correctly entered within the ticket information in OTRS.

Do you have any idea how to solve that? Our agents will probably use that copy+paste option with breaklines from whatever source they may use.

Thank you in advance.
skullz
Znuny superhero
Posts: 621
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Text with break lines becomes \r \n

Post by skullz »

Try to set content as html

ContentType => 'text/html; charset=utf-8'

Good luck
Post Reply