linkend="conversion-names"> for available conversion
names. The
string must be valid in the
- source encoding.
+ source encoding.
convert('PostgreSQL' using iso_8859_1_to_utf8)
'PostgreSQL' in UTF8 (Unicode, 8-bit) encoding
int
-
ASCII code of the first character of the
argument.
- For
UTF8 returns the Unicode code point of the character.
- For other multi-byte encodings. the argument must be a strictly
-
+
ASCII code of the first character of the
+ argument. For
UTF8 returns the Unicode code
+ point of the character. For other multi-byte encodings. the
+
argument must be a strictly ASCII character.
+
ascii('x')
120
chr(int)
text
- Character with the given code. For
UTF8 the argument is
- treated as a Unicode code point. For other multi-byte encodings the argument
- must designate a strictly
ASCII character.
-
+ Character with the given code. For
UTF8 the
+ argument is treated as a Unicode code point. For other multi-byte
+ encodings the argument must designate a strictly
+
chr(65)
A
bytea
- Convert string to
dest_encoding.
- The original encoding is specified by
-
src_encoding. The
string
- must be valid in this encoding.
+ Convert string to
dest_encoding.
The
+ original encoding is specified by
+
string must be valid in this encoding.
convert( 'text_in_utf8', 'UTF8', 'LATIN1')
text_in_utf8 represented in ISO 8859-1 encoding
text
- Convert string to the database encoding.
- The original encoding is specified by
-
src_encoding. The
string
- must be valid in this encoding.
+ Convert string to the database encoding. The original encoding
+ is specified by
src_encoding. The
+
string must be valid in this encoding.
convert_from( 'text_in_utf8', 'UTF8')
text_in_utf8 represented in the current database encoding
int
- Number of characters in
string in the
-
string must be valid in this encoding.
+ Number of characters in
string in the
given
+ must be valid in this encoding.
length('jose', 'UTF8')
4