Currently, Firebird has ASCII_CHAR and ASCII_VAL which allows conversion between ASCII code point and ASCII characters. It would be helpful to have equivalent functions UNICODE_CHAR and UNICODE_VAL to convert between Unicode code points and CHAR(1) CHARACTER SET UTF8 characters.
The input of UNICODE_CHAR would be an integer value in the range of 0x00 and 0x10FFFF and the result would be a CHAR(1) CHARACTER SET UTF8 with the equivalent character.
The input of UNICODE_VAL would be any string type (including blobs) with character set UTF8 (character strings of other character sets should be converted to UTF8), and returns the Unicode code point of the first character of the string.
Currently, Firebird has
ASCII_CHARandASCII_VALwhich allows conversion between ASCII code point and ASCII characters. It would be helpful to have equivalent functionsUNICODE_CHARandUNICODE_VALto convert between Unicode code points andCHAR(1) CHARACTER SET UTF8characters.The input of
UNICODE_CHARwould be an integer value in the range of 0x00 and 0x10FFFF and the result would be aCHAR(1) CHARACTER SET UTF8with the equivalent character.The input of
UNICODE_VALwould be any string type (including blobs) with character set UTF8 (character strings of other character sets should be converted to UTF8), and returns the Unicode code point of the first character of the string.