php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "utf8"

What is the difference between mysql_query("SET NAMES 'utf8'") and mysql_set_charset('utf8') in PHP?

The difference between `mysql_query("SET NAMES 'utf8'")` and `mysql_set_charset('utf8')` in PHP is that `mysql_query("SET NAMES 'utf8'")` sends a quer...

How can the order of mysqli_set_charset(), SET NAMES, and set character set utf8 queries impact UTF8 encoding in PHP scripts?

The order of mysqli_set_charset(), SET NAMES, and set character set utf8 queries can impact UTF8 encoding in PHP scripts. To ensure proper UTF8 encodi...

How can the PHP query be modified to include "SET NAMES 'utf8'" and "SET CHARACTER SET 'utf8'" for handling umlauts in MySQL databases?

To handle umlauts in MySQL databases when using PHP, it is important to set the character encoding to 'utf8' both for the connection and the database....

What potential issues can arise when trying to store UTF8 encoded strings and special characters in PHP?

When storing UTF8 encoded strings and special characters in PHP, potential issues can arise if the database or the PHP environment is not properly con...

What are the potential pitfalls of using mysql_query("SET NAMES 'utf8'") and mysql_query("SET CHARACTER SET 'utf8'") in PHP?

Using mysql_query("SET NAMES 'utf8'") and mysql_query("SET CHARACTER SET 'utf8'") in PHP can lead to vulnerabilities such as SQL injection attacks. It...

Showing 1 to 5 of 82 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 16 17 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.