-
-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<th>星期一</th>Unicode does not support #290
Comments
try to specify encoding in your head tag |
I have try add , but it don't work. @terrylow can you give me a demo ,if you use the same method . |
I have the same problem, even serious. All Chinese words display "?", not only in <table> |
@syoukaihou @meditatorzhang do you have the chinese font installed ? i have tested, without proper chinese supported font (xx.ttf, xx.ufm, and xx.ufm.php), you will get ?? or square characters |
Step to install your font to dompdf
|
@terrylow, |
@terrylow,
at last, pdf file also display "?" in Chinese character postion. @ZK998 |
@meditatorzhang |
@ZK998 |
@meditatorzhang did you set font-family in your page or for your elements ? |
@terrylow
|
@meditatorzhang you need to use simsun font instead of 'msyh' in your case |
@terrylow |
I don't know if it works with Chinese, but with Russian it is enough just to change setting in config/dompdf.php
Load font is also working, but my way much easier. |
@schel4ok thanks . it work for me . |
It works like @terrylow say at #290 (comment). I use "simhei" that works fine with mixed Chinese and Latin characters.
Cheers |
please help me to resolve my problem, i type my vietnamese but display ? ? character, i'm using dompdf, so how can i do to display m data. thanks all |
you just need to add font-family: DejaVu Sans; in your body or also you can set the font family to any specific div in which you are going to display the Unicode Characters. For body: And for a specific div: Hope this would help. |
hello i have same problem, then i have no idea which chinese font can be used. but it always show error Fatal error: Uncaught Dompdf\Exception: Unable to read 'simsun.ttf'. in /Users/zonghan/Applications/dev-backend/source-code/ubss/load_font.php:77 |
hello , I have same problem, then i have no idea which chinese font can be used.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
but the web page show "???",
The text was updated successfully, but these errors were encountered: