CastleCops, Internet Crime Fighters
Need help? Click here to register for free! Absolutely zero advertisements on this site!

$9736.22 of $21422.68
left sidedonated so farneed $11686.46 donated to reach our goalright side, our goal
Help CastleCops serve the community on new servers, Donate Here to reach our goal.

Donation/Premium
spacer
block bottom
Security Central
spacer
· Home
· PIRT/Fried Phish
· MIRT
· SIRT
· Deutsch
· Wiki
· Newsletter
· O16/ActiveX
· CLSID List
· Contest2007
· Downloads
· Feedback (send)
· Forums
· HijackThis
· Hijacktrend
· LSPs
· My Downloads
· O18
· O20
· O21
· O22
· O23
· O9
· Premium
· Private Messages
· Proxomitron
· Reviews
· Search
· StartupList
· Stories Archive
· Submit News
· WsIRT
· Your Account
· Acceptable Use Policy
block bottom
Survey
spacer
Was 2007 a good year?

Yes it was a wonderful year
Yes, but there is always room for improvement
Status quo
It was a challenge
Other (leave comment)



Results
Polls

Votes: 940
Comments: 25
block bottom
spacer spacer

CastleCops site encoding

 
Post new topic   Reply to topic       All -> FavForums -> General Site [del.icio.us!] [digg it!] [reddit!]
View previous topic :: View next topic  
Author Message
pwillener

SRT Trainee
SRT Trainee
Premium Member

Joined: Apr 17, 2006
Posts: 1725
Location: Japan
Premium

PostPosted: Mon Oct 22, 2007 8:00 am    Post subject: CastleCops site encoding
Reply with quote

I sometimes need to use Japanese Windows for certain tasks. Recently, during some idle time, I browsed the CastleCops site from Japanese Internet Explorer. I was a bit shocked to find the entire site sprinkled with garbage characters!

The cause was found easily: the CC site does not specify an explicit encoding anywhere. This causes browsers to choose a default encoding; when the browser is a Japanese one, then the default encoding will be 'Shift_JIS'. This will cause characters next to special characters (period, comma, apostrophes, etc.) to turn into random garbage characters, or even false Japanese characters.

Suggestion: SpamCop should specify its own encoding to allow users with non-European languages to successfully see the original CC content. Best choice: iso-8859-1 (Western European), or UTF-8 (Unicode).

Code:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">

http://www.w3.org/International/O-charset

Back to top
View users profile Send private message Visit posters website
Paul

CastleCops Founder


Joined: Feb 22, 2002
Posts: 27351

Administrators Firetrust Forums Admin MIRT Moderators MVP Phishing Squad Premium Team CC Committee

PostPosted: Tue Oct 23, 2007 1:01 am    Post subject:
Reply with quote

Interesting... this was set in the past, must have disappeared when we went to Squid. Thanks for the heads up, I'll check into this.


_________________
Paul Laudanski - http://www.laudanski.com
http://www.linkedin.com/pub/1/49a/17b
Back to top
View users profile Send private message Send email Visit posters website
Paul

CastleCops Founder


Joined: Feb 22, 2002
Posts: 27351

Administrators Firetrust Forums Admin MIRT Moderators MVP Phishing Squad Premium Team CC Committee

PostPosted: Tue Oct 23, 2007 1:02 am    Post subject:
Reply with quote

I should note, it was set directly in the http header, and not in the content data.


_________________
Paul Laudanski - http://www.laudanski.com
http://www.linkedin.com/pub/1/49a/17b
Back to top
View users profile Send private message Send email Visit posters website
pwillener

SRT Trainee
SRT Trainee
Premium Member

Joined: Apr 17, 2006
Posts: 1725
Location: Japan
Premium

PostPosted: Tue Oct 23, 2007 2:12 am    Post subject:
Reply with quote

I wouldn't know how to do that; I think the "normal" way is to supply it with a META tag. Thanks for checking into it.

Back to top
View users profile Send private message Visit posters website
Paul

CastleCops Founder


Joined: Feb 22, 2002
Posts: 27351

Administrators Firetrust Forums Admin MIRT Moderators MVP Phishing Squad Premium Team CC Committee

PostPosted: Tue Oct 23, 2007 2:24 am    Post subject:
Reply with quote

Apache just took care of it, but with squid in the middle, things are different apparently.


_________________
Paul Laudanski - http://www.laudanski.com
http://www.linkedin.com/pub/1/49a/17b
Back to top
View users profile Send private message Send email Visit posters website
ahoier

SIRT Handler


Joined: Jan 14, 2006
Posts: 1033
Location: USA

PostPosted: Tue Oct 23, 2007 5:10 pm    Post subject:
Reply with quote

I don't know if it's related or not, but I'm on an English OS (IE7, IE6, or Firefox) and noticed sometimes the "dots" that separate New Forum Posts, Send a PM, Your Topics, etc. up top in the navbar would turn up as Question Marks question...

Didn't see it as a big deal, and well, it was quite random (or probably because I used too many configurations around here; depending on what I'm doing...lol).

But yea, I can't remember off hand where it was displaying like that...whether it was Firefox 2.0.0.7 (It's showing the dots fine right now), Torpark/XeroBank Browser, or IE7, or IE6 (on campus).

Back to top
View users profile Send private message Visit posters website AIM Address Yahoo Messenger MSN Messenger
pwillener

SRT Trainee
SRT Trainee
Premium Member

Joined: Apr 17, 2006
Posts: 1725
Location: Japan
Premium

PostPosted: Wed Oct 24, 2007 1:35 am    Post subject:
Reply with quote

Can you check what your default encoding is (View | Encoding). Does the question mark go away when you change your encoding to Western European or Unicode UTF-8 ? If yes, then this is related.

Back to top
View users profile Send private message Visit posters website
Paul

CastleCops Founder


Joined: Feb 22, 2002
Posts: 27351

Administrators Firetrust Forums Admin MIRT Moderators MVP Phishing Squad Premium Team CC Committee

PostPosted: Wed Oct 31, 2007 11:42 pm    Post subject:
Reply with quote

OK I've got it in the apache conf now.


_________________
Paul Laudanski - http://www.laudanski.com
http://www.linkedin.com/pub/1/49a/17b
Back to top
View users profile Send private message Send email Visit posters website
Paul

CastleCops Founder


Joined: Feb 22, 2002
Posts: 27351

Administrators Firetrust Forums Admin MIRT Moderators MVP Phishing Squad Premium Team CC Committee

PostPosted: Wed Oct 31, 2007 11:42 pm    Post subject:
Reply with quote

Of particular note from the conf file:

#
# Specify a default charset for all pages sent out. This is
# always a good idea and opens the door for future internationalisation
# of your web site, should you ever want it. Specifying it as
# a default does little harm; as the standard dictates that a page
# is in iso-8859-1 (latin1) unless specified otherwise i.e. you
# are merely stating the obvious. There are also some security
# reasons in browsers, related to javascript and URL parsing
# which encourage you to always set a default char set.
#


_________________
Paul Laudanski - http://www.laudanski.com
http://www.linkedin.com/pub/1/49a/17b
Back to top
View users profile Send private message Send email Visit posters website
pwillener

SRT Trainee
SRT Trainee
Premium Member

Joined: Apr 17, 2006
Posts: 1725
Location: Japan
Premium

PostPosted: Thu Nov 01, 2007 8:03 am    Post subject:
Reply with quote

I have just checked it under Japanese Windows, and everything looks fine. The browser has received the default encoding iso-8859-1, and it displays perfectly.

Thanks, Paul!

Back to top
View users profile Send private message Visit posters website
Display posts from previous:   
Post new topic   Reply to topic       All -> FavForums -> General Site All times are GMT
Page 1 of 1

 
Quick Reply:
Username: 

Quote the last message
Attach signature (signatures can be changed in profile)
 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001 phpBB Group
spacer spacer