[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'System' (#rtl)

# UTF8Decode

Convert an UTF-8 encoded ansistring to a unicodestring

## Declaration

Source position: ustringh.inc line 112

`function UTF8Decode(`
`const s: UTF8String`
`):UnicodeString;`

## Description

UTF8Decode converts the UTF-8 encoded ansistring S to a unicodestring and returns the resulting string. It calls the low-level Utf8ToUnicode function to do the actual work.

For this function to work, a widestring manager must be installed.

## See also

UTF8Encode |  | Convert a widestring or unicodestring to an UTF-8 encoded ansistring
Utf8ToAnsi |  | Convert a UTF-8 encoded unicode string to an ansistring
SetWideStringManager |  | Set the widestring manager
Utf8ToUnicode |  | Convert a buffer with UTF-8 characters to widestring characters

Documentation generated on: Feb 26 2014