Text encoding outstream -> BLOB field

EvREvR Member Posts: 178
edited 2015-12-22 in NAV Three Tier
Hi all,

When saving an HTML string to a blob, all special characters fail to save correctly. I know my input string is correct.

Html = original HTML string with correct encoding.
EditorContent = BigText
EditorOutstream = OutStream
"HTML Data" = BLOB field

<code>
CLEAR(EditorContent);
EditorContent.ADDTEXT(Html);
"HTML Data".CREATEOUTSTREAM(EditorOutstream);
EditorContent.WRITE(EditorOutstream);
</code>


After saving 'Ö Ë Ü É È' becomes � � � � �. Obviously an encoding error. But as my original input was correct on save, I know it gets messed up in the outstream or bigtext. Any ideas on how to apply the right encoding while saving?

Answers

  • EvREvR Member Posts: 178
    Sorry, was too quick on falling back to Mibuso :smile:
    "HTML Data".CREATEOUTSTREAM(EditorOutstream,TEXTENCODING::UTF8);
Sign In or Register to comment.