Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
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
|
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
|
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
|
Document encoding is incorrect.
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
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
|
There is also a hell of alot of unnecessary carriage returns in the code...
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
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
|
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
|
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
|
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 ".
|