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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:30:02+00:00 2026-05-22T15:30:02+00:00

define(EW_ENCODING, utf-8, TRUE); $encode = EW_ENCODING ; mysql_set_charset(EW_ENCODING,$con); $charset = mysql_client_encoding($con); echo The current

  • 0
define("EW_ENCODING", "utf-8", TRUE); 
$encode = EW_ENCODING ;
mysql_set_charset(EW_ENCODING,$con);
$charset = mysql_client_encoding($con);

echo "The current character set is: $charset\n";

Why doesn’t this code print utf-8? When I run this code it actually prints

The current character set is: latin1

How can I get the desired result?

  • 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-22T15:30:03+00:00Added an answer on May 22, 2026 at 3:30 pm

    MySQL uses non-standard character set names. Try utf8 without the dash.

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

Sidebar

Related Questions

(define a 42) (set! 'a 10) (define a 42) (define (symbol) 'a) (set! (symbol)
I define a headertemplate into a wpf groupbox and the databinding doesn't work. I
I want to define something like this in php : $EL = \n<br />\n;
#define q(k)main(){return!puts(#k\nq(#k));} q(#define q(k)main(){return!puts(#k\nq(#k));}) This code can print itself on the screen,however,I have a
#define LINK_ENTITY_TO_CLASS(mapClassName,DLLClassName) \ static CEntityFactory<DLLClassName> mapClassName( #mapClassName ); This is a macro from the
i define h:messages component as follows: <h:messages id=summary styleClass=summary globalOnly=true/> but when i inspected
Define z<- as.character(c(1_xx xx xxx_xxxx_12_sep.xls,2_xx xx xxx_xxxx_15_aug.xls)) such that > z [1] 1_xx xx
Define: df1 <-data.frame( id=c(rep(1,3),rep(2,3)), v1=as.character(c(a,b,b,rep(c,3))) ) s.t. > df1 id v1 1 1 a
#define ValidateReadPtr(p,cb) 0 I can't think of a use case for this kind of
#define STR test1 Why does this take 6 bytes? sizeof(STR) = 6

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.