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

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



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

[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


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

[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