CodeIgniter Forums

Full Version: [solved] R&OS;pdf class: latin chars
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]sl3dg3hamm3r[/eluser]
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!
Sl3dg3

El Forum

[eluser]sl3dg3hamm3r[/eluser]
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:

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

Why can't everything be utf? Smile