enforce utf8 in all text
Added by Turnip Zoink over 1 year ago
Hi. I'm trying to prevent non-utf characters from entering our ticketing system.
Are text fields utf8 by default? Is there a way to enforce this?
thanks,
Replies (5)
RE: enforce utf8 in all text - Added by Joan J over 1 year ago
The web page is presented as UTF8, so any content that you paste there will be saved as UTF in the database, if your users are pasting non utf content in this form it will be still stored as if it was UTF.
The best approach is for the source content to be in UTF (most systems are properly reading/writing UTF today)
RE: enforce utf8 in all text - Added by Turnip Zoink over 1 year ago
What do I need to do to get the next version of Redmine to ensure that all inputted text is valid UTF8 characters?
I would appreciate an answer from someone knowledgeable of the inner workings of Redmine.
RE: enforce utf8 in all text - Added by Turnip Zoink over 1 year ago
RE: enforce utf8 in all text - Added by Turnip Zoink 10 months ago
The "best approach" is never to rely on the source content being correct. Any system should validate it's input.
The default character encoding on a Windows system is not UTF8, but CP-1252.
This is still a painful issue for us as we have no control over how text enters the system.
Please please please can this happen.
Storing input text "as if it was UTF8" is so obviously incorrect/insecure/irresponsible and frankly unnecessary.
There's a simply solution to this, if someone could just guide me in the right direction I will do the work to make it happen.