---
name: "set_filename_encoding"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/set_filename_encoding"
---

# set\_filename\_encoding(3alleg4)

Sets the encoding to use for filenames. Allegro game programming library.

## NAME

set\_filename\_encoding - Sets the encoding to use for filenames. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void set\_filename\_encoding(int encoding)**

## DESCRIPTION

Sets the encoding to use for filenames. By default, UTF-8 is assumed.

## SEE ALSO

**get\_filename\_encoding**(3alleg4)
