Welcome Guest, Not a member yet? Register   Sign In
CI can't display UTF8 data that equivalent PHP/mysql code has no trouble with
#2

[eluser]Narf[/eluser]
The answer is pretty simple - don't echo, use view files. Smile

Nowadays, setting the character set via meta tags isn't really effective - most browsers seem to just ignore it. CodeIgniter takes care of that in a real HTTP Content-Type header, using the value that you've set with $config['charset'], but when you echo data from your controller - it gets outputted before response headers are sent and that breaks the whole thing.


Messages In This Thread
CI can't display UTF8 data that equivalent PHP/mysql code has no trouble with - by El Forum - 11-09-2012, 11:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB