I am writing a simple application that links to libxml2
on the system. It works for almost all users, but one user reported this error when reading a particular xml file from the web:
Unsupported encoding ISO8859-1
This error typically indicates that libxml2 was built --without-iconv
. Is there any way I can explicitly test if the libxml2 dynamic library on the system has iconv support?
I can think of two ways to do this:
Or just avoid the issue by packaging a working libxml with your application.