The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
html encoding or charset? - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: html encoding or charset? (/showthread.php?tid=763)



html encoding or charset? - pchardnet - 09-21-2017

Friends, firstly thank you for offering the userspice to the world.

I have a little problem
When you save a text from a form the characters are saved in the encrypted form.

Example:
I write: João Carrão
He writes: Jo&atilde';o Carr&atilde';o (except the symbol ')

DB Collation = utf8_general_ci
Users Table = Innodb + utf8_general_ci

Any suggestions for what might be happening?


html encoding or charset? - pchardnet - 09-21-2017

Jo&atilde';o Carr&atilde';o


html encoding or charset? - mudmin - 09-21-2017

That is to prevent SQL injection attacks on the database where users upload javascript and things like that to the database.

What happens if you echo that text back out? It should come out properly, right?


html encoding or charset? - pchardnet - 09-22-2017

Hi Mudmin!
I got the reason.
Yes, content recovery happens correctly.

Thank you for your help