↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / Binary String Functions And Operators

convert_from

Read the PG 18 manual

Converts a binary string representing text in encoding src_encoding to text in the database encoding (see Section 23.3.4 for available conversions).

Reading PG 18current·documented in 20 of 27 versions, 8.3 to 20

Signatures & examples

convert_from ( bytes bytea, src_encoding name ) → text
Converts a binary string representing text in encoding src_encoding to text in the database encoding (see Section 23.3.4 for available conversions).
convert_from('text_in_utf8', 'UTF8') → text_in_utf8
Version history 4
  1. 16 → 17 changed
  2. 13 → 14 changed
  3. 12 → 13 changed
  4. 8.2 → 8.3 added

Definition snapshot: b7bd9cda · English manual source