Online solution to phpSmarty template exceptions

Source: Internet
Author: User
Online solution to phpSmarty template errors! & Nbsp; php & nbsp; The Smarty template is incorrect. do you have to install the Smarty template first, I copied the source code directly to the machine that configured the environment, and the above problem occurred. there was no problem with the original machine. I don't know what the problem was. please kindly advise! Online and other results php Smarty template errors solved online!
Php Smarty Template error. do you have to install the Smarty template first? I copied the source code directly to the machine that configured the environment, and the above problem occurs, there is no problem with the original machine. I don't know what the problem is. please advise me! PHP Smarty source code sharing online and other results:
------ Solution --------------------
Add
Error_reporting (E_ALL ^ E_NOTICE );

Avoid conflicts first.

------ Solution --------------------
The reason why the Chinese character becomes question mark is: the content stored in the table cannot be converted into the character set you need.
------ Solution --------------------
Reference:
Quote: reference:

The reason why the Chinese character becomes question mark is: the content stored in the table cannot be converted into the character set you need.
Is there any solution? What we can see in the database is normal. when we read the page, it is garbled. the encoding machine is okay, and it won't work if it is configured to someone else.


This problem can be solved by collecting information first.

1. what is the field encoding in the table?
2. what is the code of the program file?

Solve these two basic problems

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.