---
name: "FcUcs4ToUtf8"
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/FcUcs4ToUtf8"
---

# FcUcs4ToUtf8(3)

convert UCS4 to UTF-8

## NAME

FcUcs4ToUtf8 - convert UCS4 to UTF-8

## SYNOPSIS

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

**int FcUcs4ToUtf8 (FcChar32** *src***, FcChar8** *dst\[FC\_UTF8\_MAX\_LEN\]***);**

## DESCRIPTION

Converts the Unicode char from *src* into *dst* and returns the number of bytes needed to encode the char.
