Page 1 of 1

possible character encoding problem...

Posted: Sat May 27, 2006 9:00 am
by s.dot
I tried to validate my website using the w3c html 4.01 validator... and it complained that I didn't have a character set defined.

So I added one to my head of the html document.. but I'm not sure if I added the right one. Forgive me as I don't know much about character sets.

Code: Select all

<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
That's what I added. In one of my forum posts, a guy is trying to use the british pound symbol.. and it comes out as this

Code: Select all

Deposited �£20 on Casino King Yesterday
Played roulette
Withdrew �£1000
�£200 in account

Lost �£1,180 up.
Also there seems to be a problem with some (not all) apostrophes?

Posted: Sat May 27, 2006 9:13 am
by feyd
Your storage may have an issue with understanding what he's posted.. depends on how he's been posting.

Posted: Sat May 27, 2006 9:19 am
by s.dot
Well that was just an example. It happens in various areas throughout the site to different users. Is UTF-8 what I should be using for an english website?

Posted: Sat May 27, 2006 9:26 am
by feyd
I'd use UTF-8 across the board, English site or not, as it supports symbols, marks and glyphs beyond the standard ASCII set.

Posted: Sat May 27, 2006 3:19 pm
by Chris Corbyn
Yep, British pound signs £ do that. Use UTF-8 and also convert it to entities (it's &pound; )