Google Groups Home
Help | Sign in
RGhost : accent problem with doc.show
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all
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
zzzer  
View profile
 More options 8 Jul, 08:44
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shairon Toledo  
View profile
 More options 8 Jul, 12:35
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
zzzer  
View profile
 More options 8 Jul, 15:50
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 'Ø'...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shairon Toledo  
View profile
 More options 8 Jul, 17:38
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

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
zzzer  
View profile
 More options 9 Jul, 08:21
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 !


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google