Hi, I have the following setup:
Servoy 2.1 with a mySQL database holding text for web pages.
PHP to create XHTML webpages.
The users type text into fields in Servoy, and can see a rough preview (in an HTMLarea) of what the page will look like. It all works fine until they type quotes, &, accented characters etc. The Servoy HTML preview gets confused displaying the characters as square boxes. The same happens in the webpage created with PHP.
I tried using for quotes. Neither Servoy or PHP likes it, displaying the and instead of the quotes...
What is the correct way of encoding the characters?
- using Javascript in Servoy?
- using PHP?