IgnoredAmbience / tube-challenge-league

Automatically exported from code.google.com/p/tube-challenge-league
0 stars 1 forks source link

Special Characters trap/filter #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Special Characters trap/filter
==============================

This is for things like the å in Håkan - to ensure they are displayed 
correctly I was going to ensure that the submission/moderation system 
automatically caught them and converted them to - in this example - 
å. May not even be necessary, but I presume it's on the list as it 
caused problems, as it doesn't sound like something I'd think pre-
emptively...

Original issue reported on code.google.com by matthew.scrivin on 22 Oct 2009 at 8:32

GoogleCodeExporter commented 9 years ago
If you have the database and table collations set to Unicode (utf-8) this 
shouldn't
be a problem. The issue is then one of displaying as HTML. I think you can use
htmlentities() or something to handle this correctly (I've not used this ever):
http://uk3.php.net/manual/en/function.htmlentities.php

Original comment by t...@pberry.me.uk on 22 Oct 2009 at 8:35