Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7922995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:09:34+00:00 2026-06-03T17:09:34+00:00

Hi guys I have an issue to display chinese character in simple php file,

  • 0

Hi guys I have an issue to display chinese character in simple php file, I cannot figure out how to get it solved

<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
 <?php
 define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');
 ?>
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-type" value="text/html; charset=UTF-8" />
    </head>
    <body>

电视机/電視機
    </body>
</html>

I am think this can be the issue of apache or php.ini configuration. Any idea how to solve this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T17:09:36+00:00Added an answer on June 3, 2026 at 5:09 pm

    Use <meta charset="utf-8"> before <title>

    Some old style browers checks http header first, so you may set

    <?php
    header("Content-Type: text/html; charset=utf-8");
    

    or change your web server config file

    Example in Nginx:

    add this lines after server {

    charset utf-8;
    charset_types
        text/css
        application/javascript
        application/x-javascript
        text/xml
        text/plain;
    

    Example in Apache:

    AddDefaultCharset Off
    

    or

    AddDefaultCharset utf-8
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi guys I have a strange issue. I am trying to get list of
Hey guys I have a little issue here. I have a panel where I
i have looked at the issue closely since you guys were so confident and
Guys, i have a little issue here. Im doing a search to my UITableView.
Hi guys i have an issue currently when using a Socket to send data.
Hello guys I am working on silverlight and I have issue regarding on database
Great guys have helped me a lot in this other post: Get last word
I think I have a design issue, but I will ask you guys the
This is solved! Turns out the body tag didn't have a height as 100%
Morning Guys, I have a CSS issue that's driving me up the wall. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.