Ubuntu server not support chinese character
I’m using Amazon EC2, Ubuntu 16.04.
I noticed this problem when I try to generate a pdf file from php, the filename was not the right chinese character.
Solved
1 | $ sudo apt-get install language-pack-zh* |
(If you need korean & japanese language)
Japanese language
1 | $ sudo apt-get install language-pack-ja* |
Korean language
1 | $ sudo apt-get install language-pack-ko* |
Lastly
1 | $ sudo apt-get install fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho fonts-ipafont-gothic fonts-unfonts-core |
After installed everything, reboot the server.
1 | $ sudo reboot |
References: