Closed nurettin closed 11 years ago
Using JRuby 1.7.2 (1.9.3 compatibility)
#encoding: UTF-8 require 'rghost' require 'rghost_barcode' require 'iconv' RGhost::Config::GS[:path]= "/usr/bin/gs" RGhost::Config::GS[:charset_convert]= nil wtf= "İ" p "#{wtf} encoding: #{wtf.encoding}" RGhost::Document.new do |doc| doc.show wtf File.write("test.ps", doc.render_stream(:ps)) end
This shows
But I want it to show İ
I tried:
What can I do to show UTF-8 characters in rghost ?
Same thing happens with
doc.render :ps, filename: "test.ps"
Have you ever tried encode_test to figure out what is the properly encoding for you?
Using JRuby 1.7.2 (1.9.3 compatibility)
This shows![wtf](https://f.cloud.github.com/assets/988845/179380/18307fd8-7bfa-11e2-9a3e-56eb2151ffb0.png)
But I want it to show İ
I tried:
What can I do to show UTF-8 characters in rghost ?