31
chnwalkman
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/17 14:44

  • chnwalkman

  • Just popping in

  • Posts: 35

  • Since: 2004/8/25


I mean is that garbled words or "???" are "Posted by" and "Posted on" only when the language is chinese and charset is UTF-8, the others OK.
Resized Image

32
Cesagonchu
Re: News 1.67 Final released for XOOPS 2.5.5

Ok, so your news/language/chinese isn't utf8 I think, or there is a problem with a "define".

Take a look at news/language/chinese/main.php
Line 88: define('_MD_POSTEDON',"what do you see here?"

33
chnwalkman
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/17 16:41

  • chnwalkman

  • Just popping in

  • Posts: 35

  • Since: 2004/8/25


The file is really utf-8.
the line is:
define('_MD_POSTEDON',"发布于:");

34
Cesagonchu
Re: News 1.67 Final released for XOOPS 2.5.5

Maybe try on a webserver and not locally.
What is your php version?

35
chnwalkman
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/17 17:11

  • chnwalkman

  • Just popping in

  • Posts: 35

  • Since: 2004/8/25


Webserver and localhost are the same, and whether system is windows or ubuntu.

XOOPS 2.5.5
PHP 5.3.5
mySQL 5.5.13

36
Cesagonchu
Re: News 1.67 Final released for XOOPS 2.5.5

Off topic: this is really pretty, Chinese writing.

Regarding your problem, black_beard is trying to find a solution.

37
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

This bug comes from the UTF-8 multi-byte. Black_beard and Cesag's methods was designed for Latin characters only.

I will see to that makepdf also works with Chinese characters

38
Mamba
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/17 17:43

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
I will see to that makepdf also works with Chinese characters

Thanks! You contributions are very much appreciated!

If you have time, could you convert makepdf to use tcpdf instead of fpdf? This would simplify things, and would help us to move all our modules to tcpdf.

For the more adventurous, it would be nice to have a module/plugin, similar to Tag or Waiting module, that other modules could use to get the PDF functionality.

The "host" module (like News) would check if the PDF Plugin/module exist, and in Preferences the admin would have an option to offer PDF to the users or not.

This way we wouldn't have to write a separate PDF solution for each module.

Any takers?
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

39
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

ok Mamba, I'll do that.
I'll rewrite it to use tcpdf.
For the PDF, it's an idea. I will create a module / plugin just after.

40
Mamba
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/17 19:39

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
I'll rewrite it to use tcpdf.
For the PDF, it's an idea. I will create a module / plugin just after.

Fantastic!

Thank you very much! I love the energy that the French team brings in the last few months! Thank you guys!
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Login

Who's Online

232 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 232


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