UTF-8 problem in event's pdf file in calendar modules

Discuss about Group-Office development here

Moderator: Developers

UTF-8 problem in event's pdf file in calendar modules

Postby admin12345 » Sat Jun 02, 2012 7:26 am

Hi
I use an Utf-8 lanquage(my language is " persian "), and I want to print my events in calendar modules.
It has a big problem, when I press print bottun, instead of my character it shows to me ?? "question mark".
Can any body help me??? :!: :!: :!: :!: :!: :!:

Actually, It works correct for english characters.
admin12345
 
Posts: 43
Joined: Sat Feb 04, 2012 9:07 am

Re: UTF-8 problem in event's pdf file in calendar modules

Postby Intermesh » Sun Jun 03, 2012 2:00 pm

Best regards,

Merijn Schering
Intermesh
User avatar
Intermesh
Site Admin
 
Posts: 7134
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch

Re: UTF-8 problem in event's pdf file in calendar modules

Postby admin12345 » Tue Jun 05, 2012 5:42 am

Hi,
I couldn't understand the way that you suggested to me based on the link that you sent for me(in wiki page). :( :( :(
Can you explain more about it !!!!!!!!!
I'm confused, and I don't know what do I do?? please help me. :!: :!: :!: :!: :!:
I have to do this work(Correct pdf's characters based on UTF-8 )
Last edited by admin12345 on Tue Jun 05, 2012 6:51 am, edited 1 time in total.
admin12345
 
Posts: 43
Joined: Sat Feb 04, 2012 9:07 am

Re: UTF-8 problem in event's pdf file in calendar modules

Postby admin12345 » Tue Jun 05, 2012 6:51 am

Create own PDF fonts from TTF font files
I tried it a lot but no file created for me.
Please help me!!!
admin12345
 
Posts: 43
Joined: Sat Feb 04, 2012 9:07 am

Re: UTF-8 problem in event's pdf file in calendar modules

Postby admin12345 » Wed Jun 06, 2012 6:54 am

Hi,
Finally, I solved it.
It's enough that in "/modules/calendar/classes/pdf.class.inc.php" line 9 instead ((var $font = 'helvetica';)) use this ((var $font = 'dejavusans';))

it works correctly.

cheers.
admin12345
 
Posts: 43
Joined: Sat Feb 04, 2012 9:07 am


Return to Development Chats

Who is online

Users browsing this forum: No registered users and 2 guests