Mudsaf Posted May 31, 2012 Share Posted May 31, 2012 (edited) 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 May 31, 2012 by Mudsaf Link to comment Share on other sites More sharing options...
Ingolme Posted May 31, 2012 Share Posted May 31, 2012 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 More sharing options...
Mudsaf Posted May 31, 2012 Author Share Posted May 31, 2012 dnno whats wrong but htmlentities fix this always O_O Link to comment Share on other sites More sharing options...
Ingolme Posted May 31, 2012 Share Posted May 31, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now