libxml2 encoding problems on pre-10.0 FreeBSDs
Koop Mast
kwm at rainbow-runner.nl
Fri May 16 10:19:48 UTC 2014
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