RGhost is a document creation and conversion API. It uses the Ghostscript framework for the format conversion, utilizes EPS templates and is optimized to work with larger documents. Support(PDF,PS,GIF,TIF,PNG,JPG,etc)
I'm seeing a lot of other reported problems with utf8 encoding. I've given what I think is the correct way of putting this together but I'm still having issues:
class TestDocument < RGhost::Document
def initialize
RGhost::Config::GS[:font_encoding] = 'UTF-8'
RGhost::Config::GS[:charset_convert] = -> (text) {
text.encode('UTF-8', invalid: :replace, undef: :replace, replace: '?')
}
super font_encoding: 'UTF-8'
show '東'
end
end
I'm seeing a lot of other reported problems with utf8 encoding. I've given what I think is the correct way of putting this together but I'm still having issues:
Output of is:
When I'd expect it to be '東'