Jump to content

URGET PROBLEM [PHP, SQL]


Mudsaf

Recommended Posts

I got this textarea it works when i paste chars asdsakopöosatfsjoqtqpw but it gives error on result when there is öäå Error result

Incorrect string value: '\xE4as\xF6da...' for column 'Teksti' at row 1

Edited by Mudsaf
Link to comment
Share on other sites

It sounds like you created a database table with the wrong character set. And what PHP code is putting the string into the database?

Link to comment
Share on other sites

htmlentities() just turns all your characters into entities, which only use the first 127 ASCII characters and therefore is compatible with most character sets. The problem with this arises when you want to display the information in non-HTML environments.

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
×
×
  • Create New...