arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

UTF8

This section contains reference documentation for UTF8 encode/decode functions.

  • fromUtf8 returns UTF8 encoded string of input binary data (bytes type).

  • toUtf8 returns binary data (represented as a Hex string) from a UTF8 encoded string.

hashtag
Signature

fromUtf8(bytesCol)

toUtf8(string)

hashtag
Usage Examples

bytesCol1
utf8Str
binaryOutput
SELECT bytesCol1, fromUtf8(bytesCol1) AS utf8Str
FROM testTable
LIMIT 1

68656c6c6f21

hello!

68656c6c6f21

SELECT toUtf8('hello!') AS binaryOutput
FROM ignoreMe