Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Thomas Kristiansen
Missing LibXML::XML::Input.encoding_to_s [ reply ]  
2009-05-15 14:24
I have recently upgraded from 0.8.3 to the latest version of LibXML, and was surprised to see that document.encoding now returns an integer rather than the actual encoding.

According to the documentation Input.encoding_to_s can be used to convert the integer constants to the actual encoding string, but the Input class does not appear to exist anywhere.

Any suggestions on how to convert the encoding constant (1) into a regular encoding string ('UTF-8'), would be appreciated.

Thanks in advance
Thomas