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?
0
Answers
"HTML Data".CREATEOUTSTREAM(EditorOutstream,TEXTENCODING::UTF8);