corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Website/HTML Code wookies please!


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Website/HTML Code wookies please!
Bart
Member

Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
9th Dec 09 at 17:12   View User's Profile U2U Member Reply With Quote

I have a strange one.
This Website is showing strange characters like “ instead of speech marks.

Does anyone know why?
The UTF Character set is correctly set to 8 in the header.

This was uploaded using an SmartFTP program.

Any ideas?

[Edited on 10-12-2009 by Bart]
Dom
Member

Registered: 13th Sep 03
User status: Offline
9th Dec 09 at 17:27   View User's Profile U2U Member Reply With Quote

well it's in the source, so somewhere it's got converted. I'm guessing the the local dev page is fine? You tried uploading it using another FTP client (like FileZilla) or using the browser?
Reedy
Member

Registered: 11th Apr 04
Location: Hammersmith
User status: Offline
9th Dec 09 at 17:52   View User's Profile U2U Member Reply With Quote

Looks to me like you using a different quotation mark. you need the " and not the curly single one.
Sam
Moderator
Premium Member


Registered: 24th Dec 99
Location: West Midlands
User status: Offline
9th Dec 09 at 18:24   View User's Profile U2U Member Reply With Quote

Document encoding is incorrect.
Bart
Member

Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
9th Dec 09 at 18:45   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by Sam
Document encoding is incorrect.


Can you explain, or correct it?
PaulW
Member

Registered: 26th Jan 03
Location: Atherton, Greater Manchester
User status: Offline
9th Dec 09 at 20:02   View User's Profile U2U Member Reply With Quote

There is also a hell of alot of unnecessary carriage returns in the code...
ed
Member

Registered: 10th Sep 03
User status: Offline
9th Dec 09 at 21:10   View User's Profile U2U Member Reply With Quote

Normally when this happens it's because you've copied and pasted text from a Word document. Word sometimes uses different characters to what's allowed on the web, these characters need to be encoded to work - like an ampersand (&) needs to be &

If it's this, the simple thing to do is run it through the W3C validator and make your code nice, tidy and standards compliant

[Edited on 09-12-2009 by ed]
ed
Member

Registered: 10th Sep 03
User status: Offline
9th Dec 09 at 21:14   View User's Profile U2U Member Reply With Quote

Saying that, in your footer you have "© 2009 Oval Estates (Bath) Ltd" and the  is present in the document and just needs deleting.
Bart
Member

Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
10th Dec 09 at 09:27   View User's Profile U2U Member Reply With Quote

I think this can be forced via the .htaccess file.

Can anyone confirm:
-what text should be present to force character encoding in the .htaccess file
-how to disable the authentication and allow everyone to view everything as normal with a .htaccess file present?
ed
Member

Registered: 10th Sep 03
User status: Offline
10th Dec 09 at 11:43   View User's Profile U2U Member Reply With Quote

I don't think you can do what you want to do using .htaccess.

Is the site static or is it rendered using a CMS? In PHP you could use htmlspecialchars(); to encode everything.

If it's static, just take out the incorrect style quotation marks and replace them with ".

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
One or two *cough* more Max Power Live pics (finally) Dan B General Chat 7 818
8th Jul 03 at 12:02
by Dan B
 
html code Robin Geek Day 3 200
4th Dec 05 at 19:48
by James
 
loging website Greg_M Geek Day 24 1038
15th Mar 07 at 18:02
by Ian
 
website wookies Bart Geek Day 8 885
19th Jan 08 at 03:21
by Ian
 
clear out wheels lights stereo stuff snoop Parts Offered 5 669
28th Mar 09 at 10:42
by stu_c
 

Corsa Sport » Message Board » Off Day » Geek Day » Website/HTML Code wookies please! 29 database queries in 0.0107839 seconds