Registry / utility / guess-html-encoding

guess-html-encoding

JSON →
library0.0.11rbrubygemsunverified

A small gem that attempts to guess and then force encoding of HTML documents for Ruby 1.9.

gem install guess_html_encoding
INSTALL
IMPORT
SIG · GUESS-HTML-ENCODIN
G
guess-html-encoding
utilityrubyv0.0.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GuessHtmlEncoding
require 'guess_html_encoding'

Guess and force encoding of an HTML document.

require 'guess_html_encoding' html = File.read('page.html') encoded = GuessHtmlEncoding.guess(html)
Debug
Known issues
breakingDesigned for Ruby 1.9; may not work correctly on newer Ruby versions.
fix
Use a more modern encoding detection library like 'charlock_holmes' or 'rchardet'.
affects: >= 2.0
Upgrade
Version history
0.0.11latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
guess-html-encoding — gem install guess-html-encoding · libregistry