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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:48:42+00:00 2026-05-25T01:48:42+00:00

I got this table with a column name Catégorie which I can’t rename (long

  • 0

I got this table with a column name Catégorie which I can’t rename (long story) and that é is bothering me big time.

I can’t seem to query that column.

I got the following code

$query_brands = "SELECT distinct catégorie as merk FROM GSProduct";

    $resultBrands = $phpbb->query($query_brands);
    $brandArr = array();
    foreach($resultBrands as $brand){
        $brandArr[$brand->merk] = $brand->merk;
    }

In mysql the query works fine, but in php I get an exception:

PDOException: in meisjesschoenen_filter_form() (line 198 of /home/mediaspe/domains/mediaspex.be/public_html/juniorsteps/sites/all/modules/meisjesschoenen/meisjesschoenen.module)

I tried putting it between ' ' but then I just get 1 empty result instead of the 7 results I should get

Help is appreciated a lot!!

UPDATE:

I found the following lines of code in settings.php and I added the collation ad followed:

array (
    'juniorsteps_gem' =>
    array (
      'database' => '*****',
      'username' => '*****',
      'password' => '*****?',
      'host' => 'localhost',
      'port' => '',
      'driver' => 'mysql',
      'prefix' => '',
'collation' => 'utf8_general_ci',
    ),

Also I found in mysql that the collation of my database/table also is utf8_general_ci so that should be ok.

UPDATE2 (could not self answer yet)

The problem was my file.
I’ve used notepad++ to convert my file from ANSI to UTF 8 and now it works.

Thx all for the push in the right direction!!

  • 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-25T01:48:43+00:00Added an answer on May 25, 2026 at 1:48 am

    Ensure that the file you’re writing the SQL statement is correctly encoded, e.g. UTF-8. That’s a setting in the editor you’re using.

    Otherwise you are sending the wrong characters to the database, because you get a PDO Exception an invalid one.

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

Sidebar

Related Questions

I've got this table with an int(11) column and hundreds of millions of rows.
I've got a table of student information in MySQL that looks like this (simplified):
I've got a table one column of which uses an NSPopUpButtonCell. Try as I
Got this: Table a ID RelatedBs 1 NULL 2 NULL Table b AID ID
So I've got this audit table, looks like this: USE [DatabaseName] GO /****** Object:
I tried this: ALTER TABLE My.Table DROP MyField and got this error: -MyField is
I've got a situation like this: Table: FunTable ItemKey ItemName ItemPriceEffectiveDate ItemPrice 11 ItemA
I've got this bit of JQUERY: <script> function initNav() { $('.nav tr table td
I've got m2m relationship like this: #main table CREATE TABLE products_product ( id integer
I've basically got a table with 2 rows and it looks like this: ---------

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.