Reply
 
Thread Tools Search this Thread
 
Old 20 February 2015, 14:32   #1
Member
 
JamesF's Avatar
 
Country: UK - England
Town: Sidmouth
Boat name: Various
Make: Avon, Ribcraft
Length: 4m +
Engine: Mercury 40, Honda 50
Join Date: Nov 2012
Posts: 249
Forum character encoding

This post contains a hyperlink with Greek characters in it: Greek Rib Championship 1st Race in Rhodes

They render as gibberish in my browser because the page's Content-Type header and meta tags declare the character encoding as ISO-8859-1, but those characters are in UTF-8. If I view the page as Unicode, they look mostly correct.

There's something similar happening here: Free Bacon Sandwiches!!

Viewed using the declared (ISO-8859-1) encoding, the hyperlink in that post contains two capital letters A with circumflex; viewed as Unicode, they disappear, and some of the other characters are rendered wrongly instead. (Because, although the multi-byte character in UTF-8 is coincidentally the same as the two characters » in Latin-1, that coincidence doesn't extend to the apostrophe and the ellipsis, because they then get rendered with the Unicode replacement character: �).

Oddly, if I put multi-byte Unicode characters like arrows into a post, they seem to work: ←→ ←link test→. If I look at the page source, all of the arrows use HTML character entities. If I put Greek characters into a post (π σ κ), they also use character entities, so they also always render correctly.

So, because my posts all seem to work, I'm not sure if it's just a problem for hyperlinks, or whole posts, or something else.

For reference, I'm viewing and posting this using Firefox 35 on a Linux desktop.
__________________

__________________
JamesF is offline   Reply With Quote
Old 20 February 2015, 16:43   #2
Administrator
 
Janet H's Avatar
 
Country: USA
Town: Pacific NW, USA
Length: under 3m
Join Date: Feb 2011
Posts: 96
RIBase
When did this begin to occur?
__________________

__________________
Janet H is offline   Reply With Quote
Old 20 February 2015, 16:49   #3
RIBnet admin team
 
Poly's Avatar
 
Country: UK - Scotland
Boat name: imposter
Make: FunYak
Length: 3m +
Engine: 2 stroke YAM 20 HP
MMSI: 235089819
Join Date: Sep 2005
Posts: 10,113
James - I *think* the issue arrises when someone puts in a hyperlink in their post. The forum software intelligently tries to use the title tag of the destination page to create the link text. It seems if the title tag contains complex character sets this confuses things.
__________________
Poly is offline   Reply With Quote
Old 20 February 2015, 20:30   #4
Member
 
A1an's Avatar
 
Country: UK - Scotland
Town: Fort William
Make: Humber Destroyer
Length: 5m +
Engine: Yamaha F80
Join Date: Mar 2012
Posts: 2,239
RIBase
Whoooosh.......
__________________
There is a place on this planet for all of Gods creatures.........right next to my tatties and gravy.
A1an is offline   Reply With Quote
Old 20 February 2015, 22:12   #5
Member
 
JamesF's Avatar
 
Country: UK - England
Town: Sidmouth
Boat name: Various
Make: Avon, Ribcraft
Length: 4m +
Engine: Mercury 40, Honda 50
Join Date: Nov 2012
Posts: 249
Quote:
When did this begin to occur?
Unfortunately I don't know. I've definitely seen it before, but I can't remember when — it just looks like noise and one tends to ignore it until the programmer within eventually puts two and two together and gets 0b100. Not terribly helpful in a bug report, I know.

e-ENPLO: Viper Ribs 2015: Το *ανελλήνιο *ρ‰„άθλημα ΦꉄŽν Σκα†Žν - The Hellenic Rib Racing championship

Poly: you're right. If I copy-and-paste the same URL from the Greek RIB Championship thread post #62, my post has the problem.

The pasted URL is sent like this in the POST request body:
Quote:
http%3A%2F%2Fwww.e-enplo.com%2F2015%2F02%2Fviper-ribs-2015-hellenic-rib-racing.html
So it appears to be a server-side thing, not the post editor.

Edit: I wondered if the RIBnet forum software was behaving correctly but being given an incorrect content-type. But the response from that URL properly declares itself as UTF-8 in its HTTP Content-Type header and a meta tag.
__________________
JamesF is offline   Reply With Quote
Old 21 February 2015, 05:53   #6
RIBnet admin team
 
willk's Avatar
 
Country: Ireland
Make: Redbay Boats
Length: 9m +
Engine: 370hp
Join Date: Feb 2008
Posts: 12,924
RIBase
Quote:
Originally Posted by A1an View Post
Whoooosh.......
"Whoosh - right over your head"
or
"Whoosh - SuperPoly to the rescue"?

__________________

__________________
"Who knows what evil lurks in the hearts of men?"
.
willk is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


» Member's RIBs

RIB

Epirb

RIB

GeorgeH
Add your RIB



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 09:26.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.