---
name: "unicode_html40ent_lookup"
section: "3"
platform: "linux"
package: "libcourier-unicode-dev"
version: "2.3.2-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/unicode_html40ent_lookup"
---

# unicode\_html40ent\_lookup(3)

look up unicode character for an HTML 4.0 entity

## NAME

unicode\_html40ent\_lookup - look up unicode character for an HTML 4.0 entity

## SYNOPSIS

```
#include <courier-unicode.h>
```

**char32\_t unicode\_html40ent\_lookup(const char \****entity***);**

## DESCRIPTION

**unicode\_html40ent\_lookup**() returns the unicode character represented by an HTML 4.0 entity. The *entity* is a string, such as “quot”, in which case **unicode\_html40ent\_lookup**() returns 34.

Additionally, **unicode\_html40ent\_lookup**() parses a numerical entity given as “#*decimal*” or “#x*hex*”.

**unicode\_html40ent\_lookup**() returns 0 if the *entity* is not a known entity that represents a single unicode character.

## SEE ALSO

[**courier-unicode**(7)](/courier-unicode/7.md), [**unicode\_convert\_tocase**(3)](/unicode_convert_tocase/3.md).

## AUTHOR

**Sam Varshavchik**

Author
