linkend="conversion-names"> for available conversions.
- convert( 'text_in_utf8', 'UTF8', 'LATIN1')
+ convert('text_in_utf8', 'UTF8', 'LATIN1')
text_in_utf8 represented in ISO 8859-1 encoding
is specified by
src_encoding. The
string must be valid in this encoding.
- convert_from( 'text_in_utf8', 'UTF8')
+ convert_from('text_in_utf8', 'UTF8')
text_in_utf8 represented in the current database encoding
Convert string to
dest_encoding.
- convert_to( 'some text', 'UTF8')
+ convert_to('some text', 'UTF8')
some text represented in the UTF8 encoding
Escape> merely outputs null bytes as \000> and
doubles backslashes.
- encode( E'123\\000\\001', 'base64')
+ encode(E'123\\000\\001', 'base64')
MTIzAAE=
in an
SQL statement string.
Embedded single-quotes and backslashes are properly doubled.
- quote_literal( 'O\'Reilly')
+ quote_literal('O\'Reilly')
'O''Reilly'
Replace all occurrences in string of substring
- replace( 'abcdefabcdef', 'cd', 'XX')
+ replace('abcdefabcdef', 'cd', 'XX')
abXXefabXXef
int
Number of bytes in binary string
- octet_length( E'jo\\000se'::bytea)
+ octet_length(E'jo\\000se'::bytea)
5