| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Jorge Silva <jorge(dot)silva93(at)gmail(dot)com> |
| Cc: | Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: xPath in a database with LATIN1 encoding |
| Date: | 2021-04-24 16:49:21 |
| Message-ID: | 1707307.1619282961@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
Jorge Silva <jorge(dot)silva93(at)gmail(dot)com> writes:
> The characters that it is not recognizing are both “ç” and “ã” because I think they are encoded differently in latin1 and utf-8. Is it possible to somehow use the xPath function with special characters in the XML and in a database which is not encoded with utf-8?
I don't have a lot of expertise in this area, but I think you need
an explicit encoding indicator in the xml header, a la
<?xml encoding="latin1"?> ...
On the whole, the xml type is definitely easier to use with database
encoding set to utf8. I think you'll be paying for encoding conversion
every time we interact with libxml, for instance.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jorge Silva | 2021-04-24 18:20:43 | Re: xPath in a database with LATIN1 encoding |
| Previous Message | Jorge Silva | 2021-04-24 15:20:24 | xPath in a database with LATIN1 encoding |