3

I only found some strange results online where somebody tried select E'\x020AC', select E'\x020\x0AC' or select E'\x0AC\x020' but none worked.

Andreas Covidiot
  • 4,286
  • 5
  • 51
  • 96

1 Answers1

8

So I had to search and read more carefully in the pg docs and found the solution:

select U&'\20AC'  -- => "€"
select E'\u20AC'  -- => "€"
Andreas Covidiot
  • 4,286
  • 5
  • 51
  • 96