decode

Summary

Decodes UTF-8 encoded text.

Usage

public static string decode(byte[] utf8EncodedData)

Returns

The decoded text.

Parameters

utf8EncodedData

The UTF-8 encoded byte sequence to decode.

Description

Decodes UTF-8 encoded text.

Examples

Basic Usage
1
2
3
4
5
6
7
import System;
import System.Encoding;
  
byte[] encoded = [ 0xE2, 0x82, 0xAC ];
string decoded = UTF8.decode(encoded);
  
Console.log(decoded); // "�"

Share

HTML | BBCode | Direct Link