Skip to content

External Encoding (for Ruby 1.9)

shairontoledo edited this page Jun 7, 2011 · 1 revision

if you are experiencing any issue using encoding in ruby 1.9 you can set RGhost::Config::GS[:external_encoding] (default is nil) before create a document.

Example

RGhost::Config::GS[:external_encoding]= 'ascii-8bit'
doc = RGhost::Document.new

This feature has been created by Clair Cardoso