Windward Engine API Reference
GetEncoding Method
See Also  Send comments on this topic.
net.windward.api.csharp Namespace > SaxonDataSourceImpl Class : GetEncoding Method




file

Glossary Item Box

Determines a text file's encoding by analyzing the xml header.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetEncoding( _
   ByVal file As Stream _
) As Encoding
Visual Basic (Usage)Copy Code
Dim file As Stream
Dim value As Encoding
 
value = SaxonDataSourceImpl.GetEncoding(file)
C# 
public static Encoding GetEncoding( 
   Stream file
)
Managed Extensions for C++ 
public: static Encoding* GetEncoding( 
   Stream* file
) 
C++/CLI 
public:
static Encoding^ GetEncoding( 
   Stream^ file
) 

Parameters

file

Return Value

The detected encoding.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP, Windows Vista, Windows Server 2003 family

See Also

© 2019 All Rights Reserved.