---
layout: doc
title: strings / string_decode
---
# string_decode

### SYNOPSIS

    string string_decode(buffer buf, string encoding);

### DESCRIPTION

    Decode the given buffer with given encoding into an UTF-8 string.

### SEE ALSO

    string_decode, buffer_transcode
