Results 1 to 7 of 7

Thread: Unclear - Website running off Apache with Chinese Fonts

  1. #1

    Question Unclear - Website running off Apache with Chinese Fonts

    Guys , i am unclear about this particular problem and would appreciate some insight.

    I have installed apache many times to host english based websites ( static html and dynamic php pages). But now for some of these sites, i would like to add some Chinese / Mandarin pages?

    So what do i need to do to apache / php on the server side?

    Anything special do i need to do for the the client side browser? I assume they need a browser with that language pack? But if i have firefox-english, will that be lost if i install firefox-chinese ?

    Sorry if these questions are amatuerish..i have no experience in this area?

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Unclear - Website running off Apache with Chinese Fonts

    Send out pages in UTF-8 encoding.

    All your data sources (static HTML files and databases) must be UTF-8 capable.

    If you do any text processing, e.g. regular expression matching, in PHP or other scripting language, take into account UTF-8 characters.

    Apache needs no configuring, it can all be done in the scripting language, e.g. PHP. As long as the client gets the correct charset encoding of UTF-8, it's up to them to render the pages correctly. They may require additional font packages, but this is not your concern.

  3. #3

    Default Re: Unclear - Website running off Apache with Chinese Fonts

    Quote Originally Posted by ken_yap View Post
    Send out pages in UTF-8 encoding.

    All your data sources (static HTML files and databases) must be UTF-8 capable.

    If you do any text processing, e.g. regular expression matching, in PHP or other scripting language, take into account UTF-8 characters.

    Apache needs no configuring, it can all be done in the scripting language, e.g. PHP. As long as the client gets the correct charset encoding of UTF-8, it's up to them to render the pages correctly. They may require additional font packages, but this is not your concern.
    ken,

    in my static html pages i have set ;

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    in mysql, for collation i have;

    utf8_unicode_ci

    in php ( via phpinfo) i have;

    charset utf8


    So therefore i just have to ask the users to get a browser with chinese font support? nothing more ? no need to edit httpd.conf or .htaccess?

  4. #4
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Unclear - Website running off Apache with Chinese Fonts

    Why don't you try it out? My browser out of the box displays Chinese characters just fine.

    BTW, this is in the wrong forum, sloppy of you. This has nothing at all to do with 64-bit. If any mod is reading this, please move the thread.

  5. #5

    Default Re: Unclear - Website running off Apache with Chinese Fonts

    Quote Originally Posted by ken_yap View Post
    Why don't you try it out? My browser out of the box displays Chinese characters just fine.

    BTW, this is in the wrong forum, sloppy of you. This has nothing at all to do with 64-bit. If any mod is reading this, please move the thread.
    will do. thanx a lot.

    regards,
    marco.

    p.s. i am running 64bit OpenSuse 11.3

  6. #6
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Unclear - Website running off Apache with Chinese Fonts

    It's got absolutely nothing to do with the word width of your CPU.

  7. #7

    Default Re: Unclear - Website running off Apache with Chinese Fonts

    Quote Originally Posted by ken_yap View Post
    It's got absolutely nothing to do with the word width of your CPU.
    ok. understood.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •