Chinese on Website?

Discussion in 'Software' started by clickk, Sep 14, 2010.

  1. clickk

    clickk Private E-2

    I'm currently working on a website and I need to display Chinese on it. It's a PHP driven website taking information from a MySQL database. In the database, I've already set the text fields' collation to utf8_general_ci and my charset on my page is utf8. The Chinese characters show up fine in the database, but output as question marks on the webpage. Help please? If more information is needed, just ask and I will provide. Thanks in advance!!
     
  2. PC-XT

    PC-XT Master Sergeant

    I would suggest this site:
    http://www.joelonsoftware.com/articles/Unicode.html
    and, for specifically Chinese, (probably more helpful,)
    http://www.chinesecomputing.com/internet/web.html

    If the rest of your page displays correctly, it could be that your browser can't find a Chinese font. You could try hex code entities such as "水" which is supposed to represent water, if I'm not mistaken. The same code would be "& #27700;" if you use regular decimal entities. (I added a space after the ampersand because this site turns decimal entities into Unicode.) Either way, the browser should turn it into 水, which is the Unicode for it. If all these display the same when you try them in a sample page, your browser can't find the correct font to display it. You can try that with whatever characters your browser isn't displaying properly.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds