possible character encoding problem...

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

possible character encoding problem...

Post 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?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Your storage may have an issue with understanding what he's posted.. depends on how he's been posting.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Yep, British pound signs £ do that. Use UTF-8 and also convert it to entities (it's &pound; )
Post Reply