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

Back to CharsetConvert Class Summary

CharsetConvert::GetHtmlCharset

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 GetHtmlCharset(ByVal htmlText() As Byte) As String

[C#]
public string GetHtmlCharset(byte[] htmlText);

[C++]
public String *GetHtmlCharset(unsigned char __gc[] htmlText);

[JScript]
public function GetHtmlCharset(Byte[] htmlText) : String
 
  Parameters  
   
htmlText
The HTML text to be parsed for the charset information.
 

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