---
name: "FcUtf8ToUcs4"
section: "3"
platform: "linux"
package: "fontconfig"
version: "2:2.18.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/FcUtf8ToUcs4"
---

# FcUtf8ToUcs4(3)

convert UTF-8 to UCS4

## NAME

FcUtf8ToUcs4 - convert UTF-8 to UCS4

## SYNOPSIS

**#include \<fontconfig/fontconfig.h\>**

**int FcUtf8ToUcs4 (FcChar8 \****src***, FcChar32 \****dst***, int** *len***);**

## DESCRIPTION

Converts the next Unicode char from *src* into *dst* and returns the number of bytes containing the char.  *src* must be at least *len* bytes long.
