---
name: "LdapUTF8ToUnicode"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/LdapUTF8ToUnicode"
---

# LdapUTF8ToUnicode(3w)

## NAME

**LdapUTF8ToUnicode** (WLDAP32.@)

## SYNOPSIS

int CDECL  LdapUTF8ToUnicode\
  (\
   LPCSTR *src*,\
   int    *srclen*,\
   LPWSTR *dst*,\
   int    *dstlen*\
  )

## DESCRIPTION

Convert a **UTF8** string to a wide character string.

## PARAMS

*src* **\[In\]**  **UTF8** string to convert.

*srclen* **\[In\]**  Size of string to convert, in characters.

*dst* **\[Out\]**  Pointer to a buffer that receives the converted string.

*dstlen* **\[In\]**  Size of the destination buffer in characters.

## RETURNS

The number of characters written into the destination buffer.

## NOTES

Set *dstlen* to zero to ask for the required buffer size.

## IMPLEMENTATION

Declared in **"winldap\_private.h"**.

Implemented in **"dlls/wldap32/misc.c"**.
