discuss.answer
-
- 534 Posts
Could you maybe post (parts of) that chunk? Why not just use a UTF8 database and then just writing in the characters with accents in clear text (without encoding them to entities or whatever)?
I have just set up a site in german (umlauts), french (other accents), english (easy) and chinese (help!) like this and it works like a charm without encoding any of the characters...
-
- 6 Posts
Luckily I hadn't done too much with the database so I just deleted and made a new one (looking around at how to change a mysql database this seemed a more sensible option in my circumstances). With the database set up as utf-8 everything works as expected and I am able to validate the source. The main reason I coded the entities was because I am working with an english keyboard layout and it was as easy to copy and paste as anything else. Thanks for identifying the issue as I have more work to do and it will be much easier to copy submitted text as written without need to use entities.