Install
sudo gem install nokogiri
Contribute
github.com/tenderlove/nokogiri

An HTML, XML, SAX, & Reader parser with the ability to search documents via XPath or CSS3 selectors… and much more

Nokogiri

Class Nokogiri::EncodingHandler inherits from Object

Public Class Methods

[](p1) Show Source

Get the encoding handler for name

static VALUE get(VALUE klass, VALUE key) { xmlCharEncodingHandlerPtr handler; handler = xmlFindCharEncodingHandler(StringValuePtr(key)); if(handler) return Data_Wrap_Struct(klass, NULL, NULL, handler); return Qnil; }
alias(p1, p2) Show Source

Alias encoding handler with name from to name to

static VALUE alias(VALUE klass, VALUE from, VALUE to) { xmlAddEncodingAlias(StringValuePtr(from), StringValuePtr(to)); return to; }
clear_aliases!() Show Source

Remove all encoding aliases.

static VALUE clear_aliases(VALUE klass) { xmlCleanupEncodingAliases(); return klass; }
delete(p1) Show Source

Delete the encoding alias named name

static VALUE delete(VALUE klass, VALUE name) { if(xmlDelEncodingAlias(StringValuePtr(name))) return Qnil; return Qtrue; }

Public Instance Methods

name() Show Source

Get the name of this EncodingHandler

static VALUE name(VALUE self) { xmlCharEncodingHandlerPtr handler; Data_Get_Struct(self, xmlCharEncodingHandler, handler); return NOKOGIRI_STR_NEW2(handler->name); }