apoc.text.byteCount

Function

apoc.text.byteCount(text STRING, charset STRING) - returns the size of the given STRING in bytes.

Signature

apoc.text.byteCount(text :: STRING, charset = UTF-8 :: STRING) :: INTEGER

Input parameters

Name Type Default

text

STRING

null

charset

STRING

UTF-8

Usage Examples

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

5

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

6