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.
Vanilla 1.1 & Character Encoding
@Mark: I've upgraded to Vanilla 1.1, and am unable to see where I'm supposed to set the character encoding for my database. I see in the details for 1.1 that you stated:
"Character Encoding Changes
For those Vanilla users who have been having problems with characters being garbled by MySQL, you can now specify which character set MySQL should use when setting or retrieving data."
I do not see how to specify the character encoding anywhere, and as a consequence, ever since I update to 1.1 the characters in my forum are horribly garbled! Please, help!!!
0
This discussion has been closed.
Comments
Mark, please, please, give us a fix!
All my characters are garbled, my extensions are spewing errors, it's CHAOS here!!!
I am sure Mark didn't do any mistake here.
$Configuration['DATABASE_CHARACTER_ENCODING'] = 'utf8'
in /conf/settings.php.Max_B will tell you what to do.
- Yes, the utf-8 feature in 1.1 asks for a "manual" text edit of settings. This is anyway a step forward, a setting is more comfortable than a core patch.
Add the line to your conf/settings.php file.
This is not big deal IMO, if it's documented. I promised to write a wiki page this week, and I'll put it in there.
- This release was made to face a security hole and improved extensions management. Languages and encoding facility are not listed on release improvement.
- Don't mix MySQL encoding setting and (x)html encoding. Vanilla files include a header.php which issues a charset information and in such respect, conforms to standard. XHTML default to utf-8 by specs so when (if) we serve files as application/xhtml+xml there is no need to encoding information.
$Configuration['CHARSET'] = 'utf-8';
I'm not arguing that the documentation is lacking, but this is an open-source community, and I made a documentation wiki for a reason. If at any time you want to jump in and help out with some documentation, feel free to do so. You've got to stop thinking of this like a customer service forum and start thinking of it like a community of people who help each other.
Icouto, you didn't get my point about this. Looking at the source of the displayed page does NOT show you headers, but meta. These are two different ways for setting encoding. If you want to track headers, you need a dedicated tool. Or look at the php source. Here are line 19-20 of headers.php (1.1.1) :
// PROPERLY ENCODE THE CONTENT header ('content-type: text/html; charset='.$Configuration['CHARSET']);
Meta is more portable, a page saved locally will display correctly, but it is optional for utf-8 encoding in xhtml. Header is output to ensure that the file will be correctly displayed when served as text/html.
all your fighting should have been saved if you read the wiki page I wrote on the matter after your first issues when switching to 1.1.
The spelling of different utf-8 case is also outlined.
You sort it, brave alone, but a simple search on the community forum would have made the trick.