apoc.text.byteCount

Function APOC Core

apoc.text.byteCount(text,[charset]) - return size of text 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