apoc.text.bytes

Function

apoc.text.bytes(text STRING, charset STRING) - returns the given STRING as bytes.

Signature

apoc.text.bytes(text :: STRING, charset = UTF-8 :: STRING) :: LIST<ANY>

Input parameters

Name Type Default

text

STRING

null

charset

STRING

UTF-8

Usage Examples

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

[78, 101, 111, 52, 106]

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

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