I recently migrate a website from a dedicated ubuntu server running apache 2 to a dedicated debian 6 server running nginx.
This website is using CakePHP 2.0 + ichikaway's mongodb plugin (and so using MongoDB)
Since I change my server, I have a strange notice when I try to save a "tags" subdocuments with special chars like "français" or "èéï".
It works in other Controllers / Models / Collections (like when I save a new comment with special chars for exemple).
I already force nginx to use utf-8, all my website pages have the meta charset utf-8 and all the .php (and .ctp) scripts are encoded in utf-8. I also tried to force utf8_encode() and also utf8_encode(utf8_decode()) (yeah that's bad...) the string bug got the same error.
Here is the notice : (and note that the document isn't saved)
Notice (1024): non-utf8 string: fran��ais [APP/Plugin/Mongodb/Model/Datasource/MongodbSource.php, line 715]
And the context :
MongodbSource::update() - APP/Plugin/Mongodb/Model/Datasource/MongodbSource.php, line 715
Model::save() - CORE/Cake/Model/Model.php, line 1614
FiltersController::edit() - APP/Plugin/Administration/Controller/FiltersController.php, line 137
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 473
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 107
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 89
[main] - APP/webroot/index.php, line 96
I pray the "Stack Overflow God" to save me, I really don't know where to look anymore to get it working like before :(
Thanks you for reading.