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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:15:32+00:00 2026-06-08T23:15:32+00:00

Problem: When I retrieve values from MySQL table to my PHP Zend Framework-application, the

  • 0

Problem:

When I retrieve values from MySQL table to my PHP Zend Framework-application, the characters ä and ö are returned from the database to my browser like this �.

Any ideas where the problem might occur? I have tried setting some properties to UTF-8, but still this occurs…I think I have still missed something.

Could you give some solutions how I can get rid of this for sure? What configs I need to set etc.

Thank you 🙂

  • 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-08T23:15:34+00:00Added an answer on June 8, 2026 at 11:15 pm

    When characters of the wrong encoding are read to the browser, they come up as � or ?. There is an encoding mismatch somewhere:

    • In your browser
    • In the database table collation
    • In the HTML charset

    Those characters would work in Unicode UTF-8, so you should verify that your DB table collation is utf8_bin or similar, as, if you want to store everything in UTF-8 Swedish, you might use utf8_swedish_ci

    In your browser, ensure that your content encoding is set to auto-detect.

    To create a UTF-8 / utf8_bin table in MySQL, here is an example:

    CREATE TABLE `sample` (
      `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
    

    To ALTER an existing table to use UTF-8, use the following command:

    ALTER TABLE table_name CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin;
    

    This post has a good explanation of whether or not to use CONVERT TO CHRACTER SET utf8

    Note CHARSET and COLLATE must both be set, otherwise you will automatically get COLLATE=utf8_general_ci

    For HTML, charset can be set using:

    <meta charset="UTF-8">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I query my mySql database table and retrieve text strings that look like this:
Hi I get problem retrieve XML data from SQL2000 server. The table structure is
After dynamically creating a client-side table based on SELECT information retrieved from MySql database,
I'd really like some help with the following MySQL / PHP problem (maybe bug?)
I have a serious problem. Firstly, I am trying to retrieve values from my
I'm having trouble deleting images from a mysql database using php. The addition of
I have next problem, when I'm trying to retrieve value from xforms:select elements I
I have a problem with getting jquery to retrieve results from a WCF service.
Im stumbling upon a problem where i need to retrieve data from the following
I am using mysql and facing some problem. I want to retrieve last row

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.