1
dnprossi
News 1.63 - PDF Creation: UTF-8 not working and xLanguage Problems
  • 2008/12/11 14:53

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


I have two problems on two different installations that I can't figure.

1. UTF-8 in PDF Creation does not work. Eg. Italian àèìòù chars work fine in Printer Friendly Page but Create Pdf from the article results in àèìòù.

2. xLanguage as above. Plus PDF creation only works if English is selected àèìòù as above though.
When Italian is selected and PDF icon clicked I get this error:

TCPDF error: Some data has already been output, can't send PDF file


Help please!!!

2
dnprossi
Re: News 1.63 - PDF Creation: UTF-8 not working and xLanguage Problems
  • 2008/12/14 17:02

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


Solved UTF-8 problem.

I removed all news_unhtml() function calls in modules/news/pdf/pdf.php file and now have correct utf-8 output.

Also found bug that adds a 1 to all to storyid on url parameter.

somewhere arround line 250 in modules/news/pdf/pdf.php file

$secondLine XOOPS_URL.'/modules/news/article.php?storyid=1'.$storyid;


and changed it to:

$secondLine XOOPS_URL.'/modules/news/article.php?storyid='.$storyid;


Still having problems when changing language with xlanguage getting error message.

Help!!!

3
ghia
Re: News 1.63 - PDF Creation: UTF-8 not working and xLanguage Problems
  • 2008/12/14 20:38

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Do you have made the required language files in /news/fpdf/language ?

4
dnprossi
Re: News 1.63 - PDF Creation: UTF-8 not working and xLanguage Problems
  • 2008/12/15 7:08

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


Hi ghia,

News 1.63 now uses TCPDF and not FPDF. This is in module/news/pdf directory. In any case I did set both English, Italian Languages.

In another installation without xLanguage, selecting languages from admin/preferences I don't get any error therefore i think it has to do with some coding in TCPDF that does not accept changing languages in xLanguage. Have no clue what it is though.

Also FPDF in Frameworks for 2.3.X works with UTF-8 and xLanguage but has right margin problems texts extends out of the page and does not recognize xLANGUAGE TAGS [en][/en].

Help!!

5
ghia
Re: News 1.63 - PDF Creation: UTF-8 not working and xLanguage Problems
  • 2008/12/15 9:50

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
News 1.63 now uses TCPDF and not FPDF. This is in module/news/pdf directory. In any case I did set both English, Italian Languages.
Humm, the directory FPDF is still there. I wonder if it is still used or only ballast?

I think you may ask these questions also on the developer forum.

6
dnprossi
Re: News 1.63 - PDF Creation: UTF-8 not working and xLanguage Problems
  • 2008/12/15 10:03

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


Yes FPDF is there but looking into source pdf/pdf.php is called. Old makepdf.php is not called anylonger eventhough still there. I did try backporting to fpdf but can't get it to work on utf-8.

I'll try again...

No forum found at developer forum

7
ghia
Re: News 1.63 - PDF Creation: UTF-8 not working and xLanguage Problems
  • 2008/12/15 10:42

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Strange, there used to be one.
I checked but http://xoops.instant-zero.com/modules/newbbex/ redirects now to XOOPS.org international support.
I assume the forum and direct support for the non-paying users is deliberatly dropped, after the CatAds II introduction debacle on XOOPS France.
I think it's not only a pitty for the users of the free Instant-Zero modules, but also a missed chance for the developers to feel what lives among their users.

8
dnprossi
Re: News 1.63 - PDF Creation: UTF-8 not working and xLanguage Problems
  • 2008/12/15 10:51

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


True!!!

Disappointing...

9
instantzero
Re: News 1.63 - PDF Creation: UTF-8 not working and xLanguage Problems

Quote:

ghia wrote:
Strange, there used to be one.
I checked but http://xoops.instant-zero.com/modules/newbbex/ redirects now to XOOPS.org international support.
I assume the forum and direct support for the non-paying users is deliberatly dropped, after the CatAds II introduction debacle on XOOPS France.
I think it's not only a pitty for the users of the free Instant-Zero modules, but also a missed chance for the developers to feel what lives among their users.


thank you for all your suppositions !

Secondly, to come back to the problem :
1/ Verify that a file exists in /xoops/modules/news/pdf/config/lang/mylanguage.php

2/ Verify that this file is configured to use UTF8

3/ It's not impossible that I remove PDF generation from the next releases of the News module because the more it goes the less it runs (because of TPCDF).

10
dnprossi
Re: News 1.63 - PDF Creation: UTF-8 not working and xLanguage Problems
  • 2008/12/15 11:21

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


Quote:
1/ Verify that a file exists in /xoops/modules/news/pdf/config/lang/mylanguage.php


Done - Languages used: en(english) - it(italian)

Quote:
2/ Verify that this file is configured to use UTF8


Done - both UTF-8

Quote:
3/ It's not impossible that I remove PDF generation from the next releases of the News module because the more it goes the less it runs (because of TPCDF).


Don't understand why PDF generation should be removed. I really need it... Would like it to work though...

As previously mentioned to get UTF-8 to work I had to remove calls to function news_unhtml() in news/pdf/pdf.php

any better Idea...

Login

Who's Online

349 user(s) are online (254 user(s) are browsing Support Forums)


Members: 0


Guests: 349


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits