Jump to content

Can embedded IEs use unicode?


Recommended Posts

I have an object created with "$ActiveX = GUICtrlCreateObj($oIE, -2, -2, $Popup_Width+5, $Popup_Height+5)".

It wont display a check mark unicode character.

Is this possible to do, and if so, what am I missing?

Link to comment
Share on other sites

  • Moderators

Is this what you are looking for?

#include <IE.au3>
#include <GUIConstants.au3>

$sHTML = "&radic;"

$oIE = _IECreateEmbedded()
GUICreate("Embedded Test")
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 10, 380, 380)
GUISetState()

_IENavigate($oIE, "about:blank")
_IEDocWriteHTML($oIE, $sHTML)

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
            ExitLoop
    EndSwitch
WEnd
Link to comment
Share on other sites

  • Moderators

So something more like this...

#include <IE.au3>
#include <GUIConstants.au3>

$sHTML = ""
$sHTML &= "<HEAD>" & @CR
$sHTML &= "<style type='text/css'>" & @CR
$sHTML &= ".unicode {" & @CR
$sHTML &= " font-family: 'Arial Unicode MS';" & @CR
$sHTML &= "}" & @CR
$sHTML &= "</style>" & @CR
$sHTML &= "</HEAD>" & @CR
$sHTML &= "<BODY>" & @CR
$sHTML &= "<span class='unicode'>✓</span>" & @CR
$sHTML &= "</BODY>" & @CR
$sHTML &= "</HTML>"

$oIE = _IECreateEmbedded()
GUICreate("Embedded Test")
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 10, 380, 380)
GUISetState()

_IENavigate($oIE, "about:blank")
_IEDocWriteHTML($oIE, $sHTML)

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
            ExitLoop
    EndSwitch
WEnd
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...