Click or drag to resize
FileEncodingDetect Method (String, Encoding, String)
Is used for code page detection. First, the file is searched for a BOM. If a BOM exists and points to UNICODE, the appropriate code page is returned with the level Certain. Otherwise, the encoding tools are used to return the code page with the level Likely.

Namespace: Sdl.FileTypeSupport.Framework.Core.Utilities
Assembly: Sdl.FileTypeSupport.Framework.Core.Utilities (in Sdl.FileTypeSupport.Framework.Core.Utilities.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
public static Pair<Codepage, DetectionLevel> Detect(
	string FilePath,
	Encoding suggestedEncoding,
	out string lineBreakType
)

Parameters

FilePath
Type: SystemString
Path to file for code page detection
suggestedEncoding
Type: System.TextEncoding
A suggested codepage that may be used if it is a valid option.
lineBreakType
Type: SystemString
String for the line break type.

Return Value

Type: PairCodepage, DetectionLevel
A Pair container that holds the detected codepage and the information on how likely it is to be the correct one.
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments