Following on from another q
Not my code but what happens is we have a fragment of HTML and this is placed on the clipboard using windows functions
CopyMemory ByVal lpData, ByVal sData, Len(sData)
SetClipboardData m_cfHTMLClipFormat, hMemHandle
The fragment is in sData and is still correct. It is copied to memory then SetClipboardData puts it on the clipboard.
The clipboard contents are pasted to the content control using
Selection.PasteSpecial , , , , WdPasteDataType.wdPasteHTM
The problem is that accented characters in the html fragment are getting converted to something else (UTF-8 to something else I guess)
Any idea how to fix what I am doing or another way to approach it?
I'll have to post another question I guess, but that is where I am