CryptoSys PKI Toolkit Manual

Cnv.CheckUTF8 Method (String)

Checks that a string contains only valid UTF-8 encoded characters (deprecated)

Syntax

[C#]
public static int CheckUTF8(
	string s
)
[VB.NET]
Public Shared Function CheckUTF8 ( _
	s As String _
) As Integer

Parameters

s
input string to check

Return Value

Zero if the string is invalid UTF-8 (after encoding into Latin-1 bytes), or a positive number if the input contains valid UTF-8 data.

Remarks

This overload with a String type is deprecated. Do not use it. Use the Cnv.CheckUTF8(Byte[]) overload instead to operate directly on a Byte[] array.

See Also

VB6/C equivalent: CNV_CheckUTF8

[Contents] [Index]

[HOME]   [NEXT: Cnv.FromBase64 Method...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.