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

  • Home
  • SEARCH
  • 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 6838057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:33:04+00:00 2026-05-26T23:33:04+00:00

I am saving to the database from cakephp to mysql. When I view the

  • 0

I am saving to the database from cakephp to mysql. When I view the data with phpmyadmin, "driver's" is saved as `”driver’s”. Is there a way to save these entries as normal escape characters? I thought cake would take care of these before they even got to the database. Also, If I do have to keep them this way, how do I unescape them when I pull them back out of the database?

CREATE TABLE IF NOT EXISTS `tablename` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `start` int(20) NOT NULL,
  `stop` int(20) NOT NULL,
  `completed` int(1) unsigned NOT NULL,
  `score` varchar(10) default NULL,
  `fc_module_id` int(11) unsigned NOT NULL,
  `fc_section_id` int(11) unsigned NOT NULL,
  `user_id` int(11) unsigned NOT NULL,
  `selections` text character set latin1 collate latin1_bin NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1035 ;

the “selections” column is the one that is giving me trouble. It wasn’t always set to latin1_bin that is just the latest charset that I tried after I tried utf8_bin. But really I was just making guesses at the charset.

  • 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-05-26T23:33:04+00:00Added an answer on May 26, 2026 at 11:33 pm

    Uncomment the

    'encoding' => 'utf8',
    

    setting for your database in app/config/database.php.

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

Sidebar

Related Questions

I am using CakePHP framework with MySQL database and I have problem in saving
I want to save some data into sqlite database and the read it, there
How can i restrict '♥♣' like characters from saving into database. If these characters
I have a action class for saving some data to a database.In action class
I want to do encode the data before saving it to a database table
I really like Xml for saving data, but when does sqlite/database become the better
Been researching how to send data from one child view to another child view.
I have the following code which takes an improperly saved Image from the database
I'm having a strange problem saving data with cakePHP. I'll explain as I go.
I have a question regarding editing/saving data in database using Django. I have template

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.