I try to add special char "†" with psql to varchar field, but no success. From php application it works (php user as iso8859-1).
setting for db are:
encoding = LATIN1
collation = fi_FI
character type = fi_FI
client both UTF8 & LATIN1 (on commandline PGCLIENTENCODING=LATIN1 or PGCLIENTENCODING=UTF8)
selecting from table shows when client is UTF8
locationx \u0086
How to add value from psql to database? Neither below are not working.
update tablex set field1 = 'locationY' || '†'
update tablex set field1 = 'locationY' || U&'\86'
giving error messages.
ERROR: character with byte sequence 0xe2 0x80 0xa0 in encoding "UTF8" has no equivalent in encoding "LATIN1"
ERROR: invalid Unicode escape value at or near "\86' "
If I view the data entered by my PHP application, the bytes are \x6c6f636174696f6e5986, but when I enter the data with psql, the bytes are \x6c6f636174696f6e59e280a0.