DHTML Editor Does Not Support DBCS Characters in VB6

ID: Q232239


The information in this article applies to:


SYMPTOMS

When you are using the "DHTML Editor for IE 5.0" control with Microsoft Visual Basic 6.0 or in a Hypertext Markup Language (HTML) script with Internet Explorer 5, you cannot assign a string that contains Double-Byte Character Set (DBCS) characters. For example, the following code is not displayed:

DHTMLEdit1.documentHTML = "<html><body>ÇѱÛ</body></html>"


RESOLUTION

To work around this problem, use "DHTMLEdit1.DOM.body.innerHTML" instead of "DHTMLEdit1.documentHTML" as in the following example:

Replace:

DHTMLEdit1.documentHTML = "<html><body>ÇѱÛ</body></html>"

With:

DHTMLEdit1.DOM.body.innerHTML = "<html><body>ÇѱÛ</body></html>"
DHTML Editing Component 1.0 (the previous version) works correctly. This version can be download from the following Microsoft Web site:
http://msdn.microsoft.com/workshop/author/dhtml/edit/download.asp


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

Additional query words:


Keywords          : kbprg msient 
Version           : WINDOWS:5
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: July 2, 1999