Open electrum opened 5 years ago
This function would allow conversion from binary data in an arbitrary character set to a varchar. Example:
SELECT from_charset('UTF-16BE', from_hex('00680065006C006C006F')); -- 'hello'
Like from_utf8(), this function should have two variants:
from_utf8()
from_charset(charset, binary)
U+FFFD
from_charset(charset, binary, replace)
How about changing the order of parameters from charset, binary, replace to binary, charset, replace
charset, binary, replace
binary, charset, replace
is utf-16 supported on trino while reading? i see from_utf8 but not utf-16 support anywhere
This function would allow conversion from binary data in an arbitrary character set to a varchar. Example:
Like
from_utf8()
, this function should have two variants:from_charset(charset, binary)
-- replaces withU+FFFD
from_charset(charset, binary, replace)