GetCodepageFromCharset Method


Returns codepage number for the specified charset.


strPlain = ObjectName.GetCodepageFromCharset(charset)  
Parameters:  
Charset As String The charset name  
Return value As Long The codepage number  

Usage example:

Dim Msg, lngCodepage
'Using visual basic to create object
Set Msg = CreateObject("MailBee.Message")
'Using ASP to create object
'Set Msg = Server.CreateObject("MailBee.Message")
'In ASP use Response.Write instead of MsgBox
lngCodepage = Msg.GetCodepageFromCharset("utf-8")
MsgBox lngCodepage 'Displays "65001"

See Also:

Message Object


Copyright © 2002-2022, AfterLogic Corporation. All rights reserved.