question

Upvotes
Accepted
1 0 2 3

MRN_STORY JSON FRACTION encoding issue with story body and headline

Hi, I am using emaconsumer demo app to subscribe to MRN_STORY on TREP-RT feed to receive news and I am seeing that sometimes the headline or body text appears to have special characters instead of printable characters. The apostrophe is converted to a different character set. This is how it looks when displayed in the output: \"We’ve added\" instead of "We've added". And this is what I see when looking in the html source "We’ve added

Do you know if I need to change the encoding before storing the news headline and story body?

Can you point me to the documentation for using any specific encoding?

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-apinewsmrnencoding
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @quotes-support

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,
AHS

Hi @quotes-support

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
-AHS

1 Answer

· Write an Answer
Upvotes
Accepted
4.4k 10 6 9

Hi @quotes-support

It uses UTF-8. See MRN Data Models and Elektron Implementation Guide

Windows' console won't display Unicode by default. You have to change the coding page and font if you want to display it on the console.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.