Welcome Guest, Not a member yet? Register   Sign In
UTF-8 problem with ci and mysql
#1

[eluser]Unknown[/eluser]
hello,
i'm working with ci 2.0 and have a developing-server
with Apache 2.0, php 5.2 and mysql 5.1. i'm coding with
phpDesigner and all outcoming files are utf-8-coded files.
my database and all tables and columns has collation utf8_general_ci.
in my metatag for charset is utf-8 registered and everything is fine.
but than i move the application to a another server with the same
server-configuration but know all signs like "ü" or ß are crashed and
when i change my ci-db-config to "charset=latin1" the most of special character
shown in a correkt form but for some of them i need following workaround:

$data = ".. some special character like Üöäß";
$data = utf8_decode($data);
$data = utf8_encode($data);

this is really strange, because in my db everystring is in utf8,
but ci is making some mysterie things with my data.
would someone can give me an tipp?


Messages In This Thread
UTF-8 problem with ci and mysql - by El Forum - 08-10-2011, 09:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB