Working on an application and it's a bit of a mess with its encoding protocol.
The application currently uses php_value default_charset ISO-8859-1
but also in places does <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
The MySql charset is Latin-1 (ISO-8859-1)
so explains why the default_charset
is being done.
There's also a wide range of encoding being done everywhere utf8_encode
, json_encode
, mb_convert_encoding
(less prevalent)
The biggest issue we are seeing is with our mobile app REST API. People submitting emojis and such can cause some really strange behavior. Fields being emptied on display, etc.
Is there a standard protocol for handling this type of encoding to get a more uniform approach?