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 8796429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:37:18+00:00 2026-06-13T23:37:18+00:00

This is really driving me crazy. I’m building a spanish website (meaning a lot

  • 0

This is really driving me crazy. I’m building a spanish website (meaning a lot of latin characters) and I’m using Zend framework.

When I save a á it displays like á . I know is a charset encoding but I dont understand why.

My head charset is <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
My database is utf8_general_ci . I’ve changed the charset to others and always the same problem.

When I look in my database, what is saved is an á

Any idea why is this happening? Thanks!

  • 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-13T23:37:19+00:00Added an answer on June 13, 2026 at 11:37 pm

    Here goes the recipe to get rid of encoding headaches:

    1. Your DB, tables and fields must use collation utf8_unicode_ci.
    2. Be sure your code (HTML, PHP… all) is UTF-8 encoded.
    3. Always use this meta tag: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    4. This is long:

    If you have access to MySQL file configuration my.cnf just add this line:

    init-connect='SET NAMES utf8'
    

    This tells MySQL to return results in UTF-8 for each connection.

    If you cannot edit my.cnf but you are using PDO, open the connection this way:

    $pdo = new PDO($dsn, $usr, $pwd, array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
    

    If you aren’t using PDO… start using it, what are you waiting for? Meanwhile you can execute this after each connection if you use ext/MySQLi:

    $mysql->set_charset('utf8');
    

    Or this if you use plain old ext/MySQL:

    mysql_set_charset('utf8', $connection);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is really driving me crazy. I've got a button inside a gridview to
This has been really driving me crazy. Web links work fine, but a phone
This is a really simple one but it's driving me crazy. I want to
I'm trying to make a website using the Zend Framework because I heard it
I'm using Python 3.2.1 in Arch Linux x86_64. This one is really driving me
This problem has been driving me crazy and Monday mornings don't really help. I'm
I've got a lot of code that's driving me really crazy right now. I'm
This is really driving me crazy !! I am sure many developers out there
Not sure how to do this and it's really driving me crazy. I have
This is a simple stuff but driving me really crazy now. Spent hours on

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.