3 ms·
> Encoding. Never had any big problems in Python and a lot in PHP Encoding is rarely a problem in PHP. Use UTF-8 everywhere, make sure every part of the system
by jonascopenhagen 14y ago
> Encoding. Never had any big problems in Python and a lot in PHP
Encoding is rarely a problem in PHP. Use UTF-8 everywhere, make sure every part of the system uses it (the database server, the database client in PHP, the web pages, etc.). If you're going to work with e.g. Japanese characters, use http://www.php.net/manual/en/mbstring.overload.php http://www.php.net/manual/en/mbstring.overload.php
- roldenburger 14y agoAgree, but sometimes you have to work with systems from other people. The fact that encoding issues can occur, means it will happen someday.
- jonascopenhagen 14y agoWhat kind of encoding issues are we talking about? I fail to see how PHP in itself should be specifically vulnerable to encoding problems.