• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] R&OS;pdf class: latin chars

#1
[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

#2
[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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.