Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8144565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:25:24+00:00 2026-06-06T13:25:24+00:00

I recently migrate a website from a dedicated ubuntu server running apache 2 to

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:25:25+00:00Added an answer on June 6, 2026 at 1:25 pm

    Ok I finally found it !

    I was using strtolower(), and it’s this function who was breaking the encoding.

    So I change it with mb_strtolower() forcing utf-8 and it works well again

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently migrated my JSF app(using primefaces) from glassfish 3.1 to tomcat7 server. Previously
I recently transitioned my companies website over to our in-house servers (Apache) from a
Recently I removed a column abc from one of my tables using rake db:migrate
Fairly exotic it seems to me. We recently upgraded/migrated from Windows Server 2003 to
I have a website running on a Windows 2003 server on IIS 6, serving
I recently started developing mobile applications using Flex 4.5. I try to migrate an
I ran a bundle install on my Gemfile recently, and tried to rake:db:migrate. This
I'm using the migrate module to copy data from several sources to a new
I recently updated my VS2010 website project from .NET 3.5 to 4.0. Everything was
I'm one of those that recently decided to migrate from MySQL to PostgreSQL and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.