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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:37:44+00:00 2026-06-16T12:37:44+00:00

1) I have a table tbl_Data in database which has name column with text

  • 0

1) I have a table tbl_Data in database which has name column with text comparision method (?) property set toutf8_polish_ci. Works as a charm, when I’m browsing tbl_Data through phpMyAdmin.

2) In my html code I’ve got:

<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">

so seems like I’m sending proper encoding headers for browser…

3) My PDO dsn contains ;charset=UTF-8, followed from php manual.

4) In my php code I use:

foreach(parent::query('SELECT ID,PLName,LatinName from tbl_Data') as $row) {
    $result = $result."
        <tr>
            <td>".utf8_encode($row['PLName'])."</td>
        </tr>
    ";
}

Having all of this I’m still getting ‘garbage’ (=?) chars instead of proper polish letters, though some of them are displaying well (phpMyAdmin shows all properly). What I am missing here? Please advice, fellows!

My MySQL Engine is InnoDB, webserver: nginx with fpm if it is revelant…

  • 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-16T12:37:46+00:00Added an answer on June 16, 2026 at 12:37 pm

    so seems like I’m sending proper encoding headers for browser.

    Wrong. <meta> is not an HTTP header but HTML tag, a non-standard one. So, your code still lacks proper header.

    header('Content-Type: text/html; charset=utf-8');
    

    My PDO dsn contains ;charset=UTF-8, followed from php manual.

    if your PHP version is less than 5.3.6 it won’t work either. use SET NAMES utf8 regular query instead

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

Sidebar

Related Questions

I have a table called tbl_loans which has the field loan_number . Loan numbers
I have a database with two tables, component_psar and tbl_info. The component_psar table has
Suppose I have following table in my database: Tbl_Persons: Id Country Name 1 Australia
i have a table (tbl_world) which look like this id | first_name | last_name
I have a table named tbl_Subjects_Taken which lists all the subjects taken by the
I have a table in SQL Server 2008 Table Name : tbl_device Table Structure:
I am building a form in access database. I have a combo box which
I have a table tbl_Info : InfoId Text PrivacyTypeId UserName TypeId IsInfo InfoItemId Example
i am reading data from a mysql database table. I have populated a dropdown
I have the following problem: I have an SQL table which contains texts 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.