Discussion

Ask a Question
Back to All

Encoding issue

I have a simple ruby code, API call that get user story description -> append it a 'new string' -> call 'save' the user story with new description
This add weirds characters to the old description like Â

I'm using https://github.com/yltsrc/targetprocess-ruby

after the 'get' user story description, 'set' it description and even after 'save' the new description - I checked the encoding and it seems as #<Encoding:UTF-8>

but after the 'save' the description contains weirds characters like Â

old description:
"

\r\n
BlaBla
\r\n\n
Change this behavior to allow login and show the <a href="https

after description:

"

new string
\r\n\n
\r\n
BlaBla
\r\n\n
Change this behavior to allow login and show the <a href="https

Any Ideas what could I fix this?

Thanks,
Liran