PDF to word converter 12.0 registration code php PDO Chinese garbled solution

WBOY
Release: 2016-07-29 08:40:23
Original
1118 people have browsed it

// Method one:
PDO::__construct($dsn, $user, $pass, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8';"));
// Method two:
PDO:: __construct($dsn, $user, $pass);
PDO::exec("SET NAMES 'utf8';");
Both methods can solve the problem. The principles are the same. Whichever you use depends on your preference

The above introduces the solution to the 12.0 registration code of pdf to word converter php PDO Chinese garbled code, including the content of the 12.0 registration code of pdf to word converter. I hope it will be helpful to friends who are interested in PHP tutorials.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!