How to get the codepage id of the current document?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

chernyshevsky_at_hotmail.com
Date: 12/22/04


Date: 22 Dec 2004 14:38:33 -0800

Is there an easy way to get the codepage identifier of the current
document? The program I'm writing uses IHTMLDocument::script to invoke
Javascript functions on the page. Some of arguments are going to text
strings. They are going to be encoded the way as the document HTML.
Since IDispatch wants Unicode text I need to do character conversions
before invoking the methods.

I've tried IHTMLDocument2::charSet, but it doesn't give me the same
text label as the GetCPInfoEx().



Relevant Pages

  • Re: Late Binding in C#
    ... Am I missing something? ... Check out Invoke in MSDN. ... >> I am writing an C# program. ... includes calling the COM object's IDispatch interface. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Late Binding in C#
    ... You will need to Invoke the method. ... Check out Invoke in MSDN. ... you can just do this if Option Explicit is off by just writing ... includes calling the COM object's IDispatch interface. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: how to determine progress downloading single file?
    ... Then I'll provide the short form of my objection to it: the Control.Invokemethod will execute the delegate immediately, rather than queuing it to the message queue for execution, if the call to Invokeis already on the correct thread. ... I suppose if in the unlikely event the common case was to not need to invoke, you might get a marginal performance improvement by checking it before calling Invoke, thus avoiding the call to Invokealtogether. ... But typically, if you're writing code to handle invoking, it's because that's expected to be the common case. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Question about quiz shows.
    ... any appeals process which the contestants can invoke when a correct ... answer is rejected (or vice-versa)? ... Why not try writing to the Queen? ...
    (uk.media.tv.misc)
  • Re: on ruby on rails and forms
    ... to know javascript's API? ... While writing these small javascript functions I search some for a good site with the precise syntax but everything seems really incomplete and vague. ...
    (comp.lang.ruby)