From: Tobes Date: 2007-01-05T00:55:16+09:00 Subject: Re: ruby iconv UTF-8 to ISO-8859-2 (Polish) Carlos wrote: > No, the problem is that PDF::Writer thinks that it is encoded in > "WinAnsiEncoding". See the manual[1], page 5. > > Try to pass to the writer a text encoded in UTF16-BE (manual, page 7), > or provide a custom mapping between byte codes and characters (page 6). Thanks for the links and the advice Carlos. I'm actually using Ruby FPDF (http://zeropluszero.com/software/fpdf/), and couldn't see a dependency on PDF::Writer. However, using iconv to convert to UTF-16 gives a different result http://www.tobinharris.com/media/mtq38_utf16.jpg. Do you know of any tools that will let me reliably inspect the data in the database to see what encoding the information is being stored in. MySQL was setup to store UTF-8, and since the text data is sent from a UTF-8 formatted web page, I assumed this would be the case. However, I'm thinking that it wasn't UTF-8 at all, and so need to know what the original encoding is? I'm also definately lacking some knowledge in this area, so any pointers to resources/tools would be appreciated. Many thanks Tobin > Good luck. > > 1: http://ruby-pdf.rubyforge.org/pdf-writer/manual/manual.pdf > --