How to get the codepage id of the current document?

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: 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: how to write a program that takes arguments from commandline?
    ... a shell) used to invoke your program. ... "Debugging is twice as hard as writing the code in the first place. ...
    (comp.lang.c)
  • 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)