The encoding problem of ecshop pitfalls has recently been solved by secondary development of ecshop. we downloaded the UTF-8 version and created another database. Both the database and the front and back-end files are UTF-8, however, when extracting data from the ecshop database, it is found that mysql_query (& quot; setnamesgbk & quot;) must be used first, and iconv must be converted to UTF-8 to display the data normally.
Recently, I used ecshop for secondary development. I downloaded the UTF-8 version and created another database. Both the database and the front and back-end files are UTF-8 files. However, when I extracted data from the ecshop database, I found that, mysql_query ("set names gbk") must be used first, and iconv must be converted to UTF-8 for normal display. does ecshop convert UTF-8 encoding into gbk and write it into the database before using gbk, then convert it to UTF-8?
Because of the encoding problem, it is quite troublesome to extract data from several table tables...
------ Solution --------------------
Haha, as long as people who have used it are the same as you ..
------ Solution --------------------
Theoretically, there is no such phenomenon.
You cannot make the final diagnosis because you have not given the table information.
------ Solution --------------------
I recently used ecshop for secondary development. No such problems
------ Solution --------------------
I only know that the conflict between ECSHOP and JQUERY is the most disturbing...
------ Solution --------------------
The database class $ db with ecshop is not mentioned above.
Conflicts with jquery are the most worrying.
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