Failure to load UTF8 encoded RESQML Dataset
The OpenETP server is refusing to store some RESQML dataset to the postgres database.
The issue can append when trying to send resqml2:ExtraMetadata linked to a RESQML object.
<resqml2:ExtraMetadata xsi:type="resqml2:NameValuePair">
<resqml2:Name xsi:type="xsd:string">pdgm/dx/resqml/field</resqml2:Name>
<resqml2:Value xsi:type="xsd:string">SLEIPNER ØST</resqml2:Value>
</resqml2:ExtraMetadata>
The following error is raise on the server
2022-11-16 08:36:43.008 UTC [87] ERROR: invalid byte sequence for encoding "UTF8": 0xd8 0x53
Here a small example to reproduce the issue