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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:43:54+00:00 2026-05-29T05:43:54+00:00

this is a long known problem which i’ve solved on several projects but this

  • 0

this is a long known problem which i’ve solved on several projects but this time
nothing seems to help.
As i play with it the hebrew chars sometimes show up as question marks (???? ????)
and sometimes as plain Gibrish (nonsense).

All my tables are set to Utf-8, as in my meta.
I have tried running :

mysql_query("SET NAMES 'hebrew' ")

and

mysql_query("SET NAMES 'utf-8' ")

trying setting header with php:

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

But Nothing seems to help.
Any clue what i should do?

*EDIT *
Well, thanks to Bekka’s answer, the problem was the correct syntax is UTF8 not UTF-8.

  • 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-29T05:43:55+00:00Added an answer on May 29, 2026 at 5:43 am

    You have a mistake in your syntax. Try the following instead:

    mysql_query("SET NAMES utf8;");
    

    Though I would advise you to learn a different database engine, such as PDO

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

Sidebar

Related Questions

I know this is a long shot - but is there any way at
Ive been tryin to solve this for a long time and now know why
I know this might be a long shot, but here it goes. I have
I know this one is going to be a long-shot, but I thought I'd
This looks like a long shot, but does anyone know of a way to:
Sorry for this long post. The question is however small but requires full detail.
Pardon me for this long story, but I think the question merits it. I
I feel like this may be a trivial problem for most people but I'm
The root problem: I have an application which has been running for several months
This is a long shot, I know... Let's say I have a collection List<MyClass>

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.