Codificar texto

Codifica a entrada com “Codificar texto” de acordo com o padrão correspondente.

Entrada: TextoResultado: Bytes binários

Entrada de texto

Execute para ver o resultado

Exemplos

An accented name in UTF-8

Entrada

André

Expected answer

UTF-8 text · exact bytes
André
Codificação
UTF-8 (65001)
A euro sign in Windows-1252

Entrada

Price: 10€

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
0000000050 72 69 63 65 3a 20 31 30 80Price: 10.
Codificação
Windows-1252 Latin (1252)
A Greek label in UTF-8

Entrada

Καλημέρα

Expected answer

UTF-8 text · exact bytes
Καλημέρα
Codificação
UTF-8 (65001)
A UTF-16 little-endian greeting

Entrada

你好

Expected answer

UTF-8 text · exact bytes
`O}Y
Codificação
UTF-16LE (1200)
A Latin-1 café label

Entrada

café

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
0000000063 61 66 e9caf.
Codificação
ISO-8859-1 Latin 1 Western European (28591)
Encode text (EBCDIC): hello

Entrada

hello

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
0000000088 85 93 93 96.....
Codificação
IBM EBCDIC International (500)

Ferramentas relacionadas

Formato de dados

Referência da operação

Ver a documentação técnica original (English)