PDF Generation and UTF8 Issue

Author Message

Softriva .com

Friday 26 January 2007 8:43:00 am

I know that there is in ezp about the pdf and utf8 system. I tried all the workarounds and patches with no help.

My client site is multilingual site. It uses Arabic charset. Usually, utf8 does it ok so the whole site is a utf8. When we tried to generate pdf, the look weird. I tried

http://issues.ez.no/6574

and

http://issues.ez.no/6574

but still no help.

I am sure all people whom language (Hebrew, Japaneses, etc) does not use the Latin characters has/have/had this issue.

Can any body help in how to generate pdf from an utf8 (Arabic) content?

Christophe Berthelé

Saturday 27 January 2007 2:55:36 pm

Hi,

welcome into the club !

Like many others I'm in the same situation than you and I can't say that the "that would modify to many things in the code" seen as answer to the associated bugs fits to me, although I admit that the pdf generation code is complex... :-(

I tried the suggested patch in issue 6574 (with line numbers adapted for 3.9.0) with not luck and even worst, troubles : some unexpected tags appeared in the generated pdf like "non impactC:callSpace>:" instead of "non impacté". However some accents are shown. Starting to be too empiric for me...

So for now, as my users complain, I plan to revert to ISO-8859-1 (not sure that will be easy)

Cheers
Berthy

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 18:33:04
Script start
Timing: Jan 18 2025 18:33:04
Module start 'layout'
Timing: Jan 18 2025 18:33:04
Module start 'content'
Timing: Jan 18 2025 18:33:05
Module end 'content'
Timing: Jan 18 2025 18:33:05
Script end

Main resources:

Total runtime1.0874 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 589.0469152.6250
Module start 'layout' 0.00700.0032 741.671939.4453
Module start 'content' 0.01011.0758 781.1172492.4531
Module end 'content' 1.08590.0014 1,273.57038.3203
Script end 1.0873  1,281.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3198160.0002
Check MTime0.00150.1357160.0001
Mysql Total
Database connection0.00110.096810.0011
Mysqli_queries1.030394.7565540.0191
Looping result0.00070.0674520.0000
Template Total1.055097.020.5275
Template load0.00180.167820.0009
Template processing1.053296.859520.5266
Template load and register function0.00020.018710.0002
states
state_id_array0.00080.074610.0008
state_identifier_array0.00180.170020.0009
Override
Cache load0.00150.1355200.0001
Sytem overhead
Fetch class attribute can translate value0.00070.063720.0003
Fetch class attribute name0.00210.194230.0007
XML
Image XML parsing0.00790.727020.0040
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00750.6859160.0005
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs