libxml2 encoding problems on pre-10.0 FreeBSDs

Cyril Kalinchikov cyr.k at me.com
Thu May 15 09:16:35 UTC 2014


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.


More information about the freebsd-gnome mailing list