Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Terms of service encoding problem
Hi folks, I'm reporting this issue in a separated discussion as Max_B suggested.
I've just found another encoding problem which was not reported yet, as far as I know. The terms of service don't display international characters correctly in latin-1. However this time they aren't replaced by a "?", but by other characters combinations. For example, "é" are replaced by "é".
This is another issue, the term of service link open a new window to display termofservices.php. This file does not include header.php nor any meta element so the encoding is left to the browser, wich default most often to latin1, while the text is utf8 encoded.
0
This discussion has been closed.
Comments
Problem I see:
xml:lang is incorrectly stated as "en-ca" rather than according to the language file (zh-tw in my case),
leading to gibberish (and requiring manual browser adjustment).[ed]The gibberish is due to the browser risking a guess.[/ed]
If you write your foreign characters as html-entities, e.g. then it should work regardless.
My solution was quick and dirty: I replaced all non-latin characters in the terms of service definition by their HTML code.
// PROPERLY ENCODE THE CONTENT (core patch) header ('content-type: text/html; charset='.$Configuration['CHARSET']);
in the /termofservice.php file, just after the language inclusion lines.I know, this is a core patch you'll need to followup until it's added to the core…