klyn.databases.sql.postgresql.PostgreSQLSupport.bytesToString
method
public static bytesToString(bytes as Byte[], offset as Int, length as Int) as String
Description

Decodes a bounded UTF-8 protocol field without replacing non-ASCII text.

Throws
  • SQLException for malformed UTF-8 or invalid field bounds.
Example
bytes = PostgreSQLSupport.stringToAsciiBytes("é😀")
assert PostgreSQLSupport.bytesToString(bytes, 0, Int(bytes.size)) == "é😀"