apoc.text.bytes

Function APOC Core

apoc.text.bytes(text,[charset]) - return bytes of the text

Signature

apoc.text.bytes(text :: STRING?, charset = UTF-8 :: STRING?) :: (LIST? OF 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]