PDFwriter problem with charset


#1

hey,

my database had charset latin1, i changed that all to utf8

cuz i had info like
étage => �©tage

and i have changed that to utf8, then when i edit through the site a
location
and enter étage, “étage” will be in the database.

Now my problem is that when i create a pdf, étage is displayed like
�©tage again.
even when i put this in the code
send_data pdf.render, :filename =>“test.pdf”, :type =>
“application/pdf;charset=utf-8”

can anyone help me?


#2

On 08/12/05, Brutyn N. removed_email_address@domain.invalid wrote:

my database had charset latin1, i changed that all to utf8

You will need to convert from UTF-8 to Latin 1. PDF::Writer does not
yet support UTF-16, but PDF itself will not support UTF-8 in any case.

-austin

Austin Z. * removed_email_address@domain.invalid
* Alternate: removed_email_address@domain.invalid