apoc.text.bytes

Details

Syntax

apoc.text.bytes(text [, charset ])

Description

Returns the given STRING as bytes.

Arguments

Name

Type

Description

text

STRING

The string to get the bytes from.

charset

STRING

The name of a supported charset. The default is: UTF-8.

Returns

LIST<ANY>

Usage Examples

RETURN apoc.text.bytes("Neo4j") AS output;
Results
output

[78, 101, 111, 52, 106]

RETURN apoc.text.bytes("Jesús") AS output;
Results
output

[74, 101, 115, 195, 186, 115]