dompdf - Chinese code-putput ???

Status
Not open for further replies.
Dear sir:
I'm using Fabrik 3.5.1 & Joomla 3.6.
database on Mysql in UTF-8.
all text (varchar) fields are in utf8_general_ci.
I have datas on Chinese languages (zh-CN).
When I export lists or forms in pdf, I see the signs '? ? ? ? ? ? ? ? ?' instead of normal words (Webpage link here).
Does some known how to solve it?
(I downloaded the dompdf from Github fabrik. I think the dompdf version is 0.6.0)

Many thanks!
 
I have installed a chinese font called: DroidSansFallback.

So I modified the custom_css.php as follow:

/* BEGIN - Your CSS styling starts here */

.sub-header {
font-size: 1.4rem;
text-transform: uppercase;
font-family:'DroidSansFallback'!important;
padding-bottom: 1.5rem;
}


@font-face {
font-family: DroidSansFallback;
src: url('DroidSansFallback.ttf');
}

div.ClJ{
font-family: DroidSansFallback;
}

#$form .foobar {
display: none;
}
#{$form} .fabrikElementContainer.span12 {position:relative;margin-bottom:10px}
#{$form} .fabrikElementContainer .span4 {display:inline-block;width:30%}
#{$form} .fabrikElementContainer .span8 {display:inline-block;left:31%;width:68%}

#{$form} .icon-checkmark:before {content:'yes'}
#{$form} .icon-remove:before {content:'no'}

/* END - Your CSS styling ends here */

EOT;

Unfortunate it didn't work. The chinese characters still showed as ??????

Could you tell me what is the reason, please.
(Sorry I didn't know how to modify the css file)
 
Did you install this font directly in the domPDF library?

Arial and dejavu are UTF8, too, they are already included in domPDF.
So maybe try in a first step with CSS

* {font-family:arial!important}
 
Arial and dejavu couldn't show Chinese characters. I installed a Chinese font and set it in Custom_CSS.php.

* {font-family:'droidsansdallback'!important}

It works now.Thanks four your help !
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top