RGhost : accent problem with doc.show
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
zzzer <f... @free.fr>
Date: Tue, 8 Jul 2008 00:44:54 -0700 (PDT)
Local: Tues 8 Jul 2008 08:44
Subject: RGhost : accent problem with doc.show
Hello,
I'm working on a project that generates PDF files.
In these PDF's, there's some barcodes, and on the top of them, there's
some text, written with the function show.
My problem is when I do a doc.show('tété') : the 'é' don't appear like
they may, but as 'Ø'.
Can someone help me ?
Thanks.
Florian
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"Shairon Toledo" <shairon.tol... @gmail.com>
Date: Tue, 8 Jul 2008 08:35:39 -0300
Local: Tues 8 Jul 2008 12:35
Subject: Re: [postscriptbarcode] RGhost : accent problem with doc.show
What's encoding you are using? Execute the code below to get the ideal encoding for your Ruby code.
require 'rghost' RGhost::Config.encode_test('tété').render :pdf, :filename => '/tmp/mytest.pdf'
On http://rghost.rubyforge.org [rdoc and manual] has many docs about encoding and charset convertion.
-- [ ]'s Shairon Toledo http://www.hashcode.eti.br
On Tue, Jul 8, 2008 at 4:44 AM, zzzer <f
... @free.fr> wrote:
> Hello,
> I'm working on a project that generates PDF files. > In these PDF's, there's some barcodes, and on the top of them, there's > some text, written with the function show.
> My problem is when I do a doc.show('tété') : the 'é' don't appear like > they may, but as 'Ø'.
> Can someone help me ?
> Thanks.
> Florian
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
zzzer <f... @free.fr>
Date: Tue, 8 Jul 2008 07:50:18 -0700 (PDT)
Local: Tues 8 Jul 2008 15:50
Subject: Re: RGhost : accent problem with doc.show
I wasn't using encoding at all...
As the encode_test PDF shows it, the IsoLatin should be good, but when
I try
doc=Document.new :font_encoding => 'IsoLatin'
or
doc.show('tété', :font_encoding => 'IsoLatin'),
the result is the same, the 'é' are written as 'Ø'...
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"Shairon Toledo" <shairon.tol... @gmail.com>
Date: Tue, 8 Jul 2008 13:38:34 -0300
Local: Tues 8 Jul 2008 17:38
Subject: Re: [postscriptbarcode] Re: RGhost : accent problem with doc.show
You must define what font tag will use the enconding, see
d=RGhost::Document.new :encoding => 'IsoLatin' d.define_tags do tag :myfont, :name => 'Helvetica', :encoding => true, :size => 8, :color => '#00FF33' tag :times, :name => 'Times', :color => '#ADAD66' #here, without encoding end d.show "tété", :with => :myfont
On Tue, Jul 8, 2008 at 11:50 AM, zzzer <f
... @free.fr> wrote:
> I wasn't using encoding at all...
> As the encode_test PDF shows it, the IsoLatin should be good, but when > I try
> doc=Document.new :font_encoding => 'IsoLatin' > or > doc.show('tété', :font_encoding => 'IsoLatin'),
> the result is the same, the 'é' are written as 'Ø'...
--
[ ]'s
Shairon Toledo
http://www.hashcode.eti.br
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
zzzer <f... @free.fr>
Date: Wed, 9 Jul 2008 00:21:42 -0700 (PDT)
Local: Wed 9 Jul 2008 08:21
Subject: Re: RGhost : accent problem with doc.show
It works very fine !
Thanks !
You must
Sign in before you can post messages.
You do not have the permission required to post.