From: Jonathan W. <co...@co...> - 2005-03-02 18:53:27
|
On Wed, Mar 02, 2005 at 06:45:13PM +0000, Jonathan Wakely wrote: > On Wed, Mar 02, 2005 at 11:46:23AM -0500, PS wrote: > > > Hello > > I compiled libxml++ and used the first example from manual (the dom parser) > > When I run in on windows everything worked ok, but on unix (I use > > FreeBSD 4.11) it gave me errors: > > > > ... > > ... > > Node name = title > > Node name = title > > line = 8 > > > > Text Node > > terminate called after throwing an instance of 'Glib::ConvertError' > > text = "Abort (core dumped) > > > > > > the sample xml file was: > > <?xml version="1.0" encoding="windows-1251"?> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> > > <head> > > <title>???????????????????????? ????????????????????...</title> > > > > So, as you might see, it coredumps just when it attempted to recode non > > english chars inside title. > > > > > > What's wrong with this?? Thank you > > It's possible that you don't have the right libraries installed to > support conversion from windows-1252 - FreeBSD often installs a minimal > set of libs. Try this: > > iconv -l | grep -i windows-1252 Sorry - that should obviously be windows-1251, not 1252 I have windows-1252 on the brain right now :) jon -- "Keep away from people who try to belittle your ambitions. Small people always do that, but the really great make you feel that you, too, can become great." - Mark Twain |