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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:38:24+00:00 2026-06-15T19:38:24+00:00

Possible Duplicate: UTF-8 all the way through So I saved some data in a

  • 0

Possible Duplicate:
UTF-8 all the way through

So I saved some data in a mysql database and its stored there with “umlauts”.
When I’m speaking of umlauts I mean these German letters: ö, ä, ü and their capitalized pendants.

So now I execute a query via PHP, something like this:

$query = "SELECT * FROM tcms_references WHERE id =".$row->id;
$erg = mysql_query($query);
$rowt = mysql_fetch_object($erg);
foreach($row as $x) {
echo $x
}

Now, there is no German word like “Baumfällung” saved in my database. The PHP query is executed and presented on the screen as “Baumfällung”.

My question: Where can I set UFT-8 as a Standart in PHP? Is there any function or something?

  • 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-15T19:38:25+00:00Added an answer on June 15, 2026 at 7:38 pm

    You need to set mysql connection to utf8

    mysql_query ('SET NAMES UTF8;');
    mysql_query ('SET COLLATION_CONNECTION=utf8_general_ci;');
    mysql_client_encoding($conn);// where $conn is your connection
    

    save page as utf8 and also put this in head of page

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: UTF-8 all the way through I am scraping data with curl from
Possible Duplicate: UTF-8 all the way through Searching high & low for a solution.
Possible Duplicate: UTF-8 all the way through I'm trying to insert special characters (like
Possible Duplicate: Ruby - UTF-8 file encoding I'm using UTF-8 all the way and
Possible Duplicate: Objective C for Windows iPhone development on Windows Is there any way
Possible Duplicate: PHP: Replace umlauts with closest 7-bit ASCII equivalent in an UTF-8 string
Possible Duplicate: How to add a UTF-8 BOM in java My oracle database has
Possible Duplicate: PHP: Replace umlauts with closest 7-bit ASCII equivalent in an UTF-8 string
Possible Duplicate: Nokogiri/Xpath namespace query Suppose there is XML <?xml version=1.0 encoding=utf-8?> <SomeResponse xmlns=some_namespace>
Possible Duplicate: XmlSerializer: remove unnecessary xsi and xsd namespaces I'm generating some XML using

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.