CodeIgniter Forums
[solved] R&OS;pdf class: latin chars - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: [solved] R&OS;pdf class: latin chars (/thread-14439.html)

[solved] R&OS;pdf class: latin chars - El Forum - 01-02-2009

Hey there

Did somebody use once the R&OS;pdf class? Officially, there is no utf-8 support. But at least the latin-chars (and not only ASCII) I would have expected to work. But as soon as I have e.g. Umlaut (ä,ö,ü), it is not properly rendered in the pdf.

Any advice?

Happy new year!

[solved] R&OS;pdf class: latin chars - El Forum - 01-03-2009

Hmm ok, I figured out: the problematic string comes from a language-file, which is encoded in utf-8. I simply convert it before sending it to the pdf-class:

iconv( "UTF-8", "ISO-8859-1//TRANSLIT", 'my string with öäü etc.')

Why can't everything be utf? Smile