CryptoSys PKI Pro Manual

CNV_Latin1FromUTF8

Converts a UTF-8 string into a Latin-1 string, if possible.
@deprecated Use CNV_Latin1FromUTF8Bytes() instead.

VBA/VB6 Syntax

Public Declare Function CNV_Latin1FromUTF8 Lib "diCrPKI.dll" (ByVal strOutput As String, ByVal nOutChars As Long, ByVal strInput As String) As Long

nLen = CNV_Latin1FromUTF8(strOutput, nOutChars, strInput)

C/C++ Syntax

long __stdcall CNV_Latin1FromUTF8(char *szOutput, long nOutChars, const char *szInput);

Parameters

szOutput
[out] to receive the output.
nOutChars
[in] specifying the maximum number of characters to be received.
szInput
[in] of UTF-8 characters to be converted.

Returns (VBA/C)

If successful, the return value is a positive number indicating the number of characters in the output string, or number of characters required if nOutChars is set to zero; otherwise it returns a negative error code.

.NET Equivalent

Not applicable in .NET.

Remarks

Example

See Also

[Contents] [Index]

[PREV: CNV_HexStrFromBytes...]   [Contents]   [Index]   
   [NEXT: CNV_Latin1FromUTF8Bytes...]

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