.NET Components
Chilkat .NET Components for Email, Zip Compression, Encryption, XML, S/MIME, and Character Encoding Conversion

Back to CharsetConvert Class Summary

CharsetConvert::GetHtmlFileCharset

Parses HTML text and returns the charset, such as "iso-8859-1" found in the META-tag that specifies the document's charset. The string "unknown" is returned if the charset was not specified. This method does not try to detect the charset based by examining the character data (like DetectCharset) but simply looks for the META tag containing the charset information.

  Declarations  
    [Visual Basic]
Public Function GetHtmlFileCharset(ByVal String htmlFilename) As String

[C#]
public string GetHtmlFileCharset(string htmlFilename);

[C++]
public String *GetHtmlFileCharset(String *htmlFilename);

[JScript]
public function GetHtmlFileCharset(String htmlFilename) : String
 
  Parameters  
   
htmlFilename
The HTML file to be parsed for the charset information.
 

Copyright 2002, Chilkat Software, Inc. All Rights Reserved.