encode Summary Encodes a string of text using UTF-32 encoding. Usage public static byte[] encode(string text) Returns A byte sequence representing the input text encoded with UTF-32. Parameters text The text to encode. Description Encodes a string of text using UTF-32 encoding. Examples Basic Usage 1234567891011import System;import System.Encoding; byte[] encoded = UTF32.encode("�"); string toHex = "";foreach(byte b in encoded) { toHex += "\\x" + b.toHex().toUpperCase();} Console.log(toHex); // "\xFF\xFE\x0\x0\xAC\x20\x0\x0" Share HTML | BBCode | Direct Link