idk…its def something wierd. I just removed the Summernote and installed the Medium Editor.
then tried to update the database with the same text…and the same characters appear.
On the medium editor, i had the html show below and it displays fine but when the update occurs, it adds those funky characters.
here is the text i’m copying and pasting
Frank said, “The best Christmas I ever had was when I didn’t even get a present.”
The others were surprised. They had to hear the story.
Frank began to talk… “I grew up in New York. It was the great depression and we were poor. My Mother had died when I was just eight years old. My Dad had a job but he only worked two or three days a week and that was considered good. We lived in a walk up and we just barely had enough food and clothes. I was a kid and didn’t really notice.”
OK so that means it is the DB character set. The correct characters are being sent from the form but your DB is saving them with a different character set.
okay, if i copy and paste the text into the summernote text area, then click the Reveal Code option…
i then copy and paste that directly into the phpmyadmin mysql database table, it does not have any formatting issues.
But when i click the save button and it updates through the Wappler system, it creates these odd characters. Its gotta be something on the update that is causing this.
It is clearly a codepage/encoding problem. You have somewhere configured the wrong encoding.
Check in devtools the content-type header of the page request, it should be text/html; charset=utf-8. Does your page include <meta charset="UTF-8">.
Add <%@ CodePage = 65001 %> to the top of your ASP, this sets the codepage for asp pages. Other ways of setting the codepage in asp is using <% Session.CodePage = 65001 %> and <% Response.CodePage = 65001 %> . The codepage 65001 is for UTF-8. Default the codepage depends on your IIS settings, in most cases the default is windows-1252.
The ASP codepage is important since the ASP code is parsing your form submit and then does the database insert query.
The last step is the database, this also be set to UTF-8. You do this by setting the collation to utf8_general_ci. Which you’ve already done, seeing the screenshots above.
okay, i think we are getting closer…but still can’t figure out where its pulling the coding from.
So here is what i did. I pulled out the Server Action on the form submission and just had it send it to a -push- page where i can view the details of the form submission. here is the screenshots from that