DHTML Editor Does Not Support DBCS Characters in VB6

ID: Q232239


The information in this article applies to:
  • Microsoft Internet Explorer version 5 for Windows NT 4.0


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: August 27, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.