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

[eluser]Narf[/eluser]
[quote author="Jeffrey McManus" date="1352492256"]> any output, including echoing from the controller, will cause a problem

Why? Why is this a problem echoing from CI when it's not a problem echoing the identical data from PHP/mysql?
[/quote]

Because your "pure PHP/mysql" script either doesn't send custom headers or sends them at its very start, while CodeIgniter will send headers after your controller code is executed.

This also answers your other question:

[quote author="Jeffrey McManus" date="1352492256"]
> you probably have some white space characters outputted

It's difficult to see how something like this could be the problem, since it's happening consistently with several separate files.[/quote]

I don't know why you're not seeing any error_messages though, unless you've set your environment to 'production'.


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, 01:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB