Hacker News new | ask | show | jobs
by jonascopenhagen 4846 days 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

1 comments

Agree, but sometimes you have to work with systems from other people. The fact that encoding issues can occur, means it will happen someday.
What kind of encoding issues are we talking about? I fail to see how PHP in itself should be specifically vulnerable to encoding problems.