Jump to content

accents in mysql by php


cmdmss
 Share

Recommended Posts

Hi, good morning.I have here a customer base that is made by php sending data to a mysql database.My question is, when I´m going to subscribe a customer in the customer base that have accents, in the mysql, this customer appear with many strange characters.For example, if I enter téstê in the customer base, in the mysql appear téstê.Can any one give me tips to how I fix that?Sorry about bad english.Thanks. :)

Link to comment
Share on other sites

Try typing

charset utf8

in the MySQL terminal and see if it helps. Basically, you have to set a charset which supports the accents. UTF-8 should do, so it is safe to use it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...