CryptoSys PKI Pro Manual

cnvCheckUTF8Bytes

Check if a byte array contains valid UTF-8 characters.

Syntax

[VBA]
Public Function cnvCheckUTF8Bytes ( _
    lpInput() As Byte _
) As Long

Parameters

lpInput
data to be checked

Return Value

Long: Zero if the data is invalid UTF-8, or a positive number (1-3) if the input contains valid UTF-8 data.

Remarks

The return value indicates the nature of the encoded characters:
0 = Not valid UTF-8
1 = Valid UTF-8, all chars are 7-bit ASCII
2 = Valid UTF-8, contains at least one multi-byte character equivalent to 8-bit ANSI
3 = Valid UTF-8, contains at least one multi-byte character that cannot be represented in a single-byte character set
[PREV: cnvBytesMid...]   [Contents]   [Index]   
   [NEXT: cnvFromBase64...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.