Re: [HACKERS] possible encoding issues with libxml2 functions - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: [HACKERS] possible encoding issues with libxml2 functions
Date
Msg-id CAFj8pRD1dh6GW9JgQf6=pfkdgZeQC2QSGKmMS1ALcSUV6o=KBw@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] possible encoding issues with libxml2 functions  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: [HACKERS] possible encoding issues with libxml2 functions  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Hi

I am sending some POC  - it does support XPATH and XMLTABLE for not UTF8 server encoding.

In this case, all strings should be converted to UTF8 before call libXML2 functions, and result should be converted back from UTF8.

I found some previous experiments https://marc.info/?l=pgsql-bugs&m=123407176408688

Note: I got some information so used xmlNodeDump function is deprecated - so we should to replace it too sometime.

Regards

Pavel


Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: [HACKERS] Support for Secure Transport SSL library on macOS asOpenSSL alternative
Next
From: Pavel Stehule
Date:
Subject: Re: [HACKERS] possible encoding issues with libxml2 functions