Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Entity DecodingThis example demonstrates how to decode entities in a VB string. (Using the free Chilkat XML ActiveX component) Dim x As New ChilkatXml ' When entity decoded, this message reads: Hello! <CopyRight><CRLF>ABC ZZZ ABC zzz x.LoadXml "<Row Message=""Hello! ©
ABC ZZZ ABC zzz"" />" Dim s As String ' Gets the string, but entities are not automatically decoded. s = x.GetAttrValue("Message") MsgBox s ' Decode the entities. The decoded bytes are treated as ANSI characters ' and converted to Unicode and returned to the (Unicode) VB6 string. s = x.DecodeEntities(s) MsgBox s
|
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.