Web site garbled What is the situation encoding problem?

Source: Internet
Author: User
http://www.icsoft.org.cn/
Web site garbled What is the situation encoding problem?


Reply to discussion (solution)

What is a data sheet encoded

There are many reasons: the encoding of the file, the encoding of the page, the encoding of the database, the encoding of the connection

It should be the database store. Encoding format problem

Two possible kinds of data in the database coding error also saved page output coding problem

The default latin1 (Swedish) character set is used in your database
While you're reading the data, the set Namea UTF8 instructions are executed.
Delete the PHP code that executes the instruction.

The way to identify this situation is simple:
Copy the first title under the "latest notices" of the website the long-abducted 2012IMEC?
So there are

$s = ' long captivity 2012IMEC? ' The record of the "Rose Road Ridge?" echo iconv (' Utf-8 ', ' latin1 ', $s);
"2012IMEC digital-to-analog hybrid technology,

should be a database coding problem, carefully check the next AH

The default latin1 (Swedish) character set is used in your database
While you're reading the data, the set Namea UTF8 instructions are executed.
Delete the PHP code that executes the instruction.

The way to identify this situation is simple:
Copy the first title under the "latest notices" of the website the long-abducted 2012IMEC?
So there is php code?12$s = ' long-captive 2012IMEC ', a record of the "Rose Lu"?


Moderator I don't quite understand PHP. This is the task that my sister gave me. I'm in. NET direction.
What are the current phase plans?

Will echo Iconv (' Utf-8 ', ' latin1 ', $s); Do you want to delete it?

The default latin1 (Swedish) character set is used in your database
While you're reading the data, the set Namea UTF8 instructions are executed.
Delete the PHP code that executes the instruction.

The way to identify this situation is simple:
Copy the first title under the "latest notices" of the website the long-abducted 2012IMEC?
So there is php code?12$s = ' long-captive 2012IMEC ', a record of the "Rose Lu"?


The last piece of information I understand is wrong.
I'm a. NET programmer this is the task that my sister gave me. The website of his unit.
How do I delete the set Namea UTF8 command now?
Can you explain it in detail? What permissions are required.
Thank you for Your Excellency the moderator.

You first search the site for all rows that contain "UTF8" (case-insensitive). Stick it out and look.

You first search the site for all rows that contain "UTF8" (case-insensitive). Stick it out and look.

It seems I have to get the source code first .... I'll see if I can get to ... Thank you first.

mysql_query (set names utf-8); When database queries are added

Note that the file is also encoded.

It should be a coding problem, check that your coding is consistent everywhere.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.