libxml2 encoding problems on pre-10.0 FreeBSDs

Cyril Kalinchikov cyr.k at me.com
Fri May 16 10:45:37 UTC 2014


Yes, that works okay.

On May 16, 2014, at 02:19 PM, Koop Mast <kwm at rainbow-runner.nl> wrote:

On do, 2014-05-15 at 08:15 +0000, Cyril Kalinchikov wrote:
        > Hello,
        > 
        > Apparently in the current ports snapshot the libxml2 port cannot "find" iconv installed (in a package) and thus only supports utf-8/ascii internal encodings.
        > 
        > Example (in PHP):
        > $xml = new SimpleXMLElement('<?xml version="1.0" encoding="windows-1251"?      ><orders        ></orders  >');
        > 
        > This fails with the "Unsupported encoding" error. Works on FreeBSD 10+ (where iconv is in the base system).
        > This is pretty critical for us.
        > 
        > Thanks for a quick fix.

Could you try the following patch?
http://people.freebsd.org/~kwm/libxml2-iconv.diff





More information about the freebsd-gnome mailing list