XAMPP locally on Windows with UTF

Please post all install related problems here. Visit this forum first for troubleshooting.

XAMPP locally on Windows with UTF

Postby Jensensen on Thu Mar 06, 2008 20:36

when you install phpwcms locally for testing using XMAPP and UTF it could be a good idea to change/add:
setlocale(LC_CTYPE, 'C');

somewhere in your php script --> e.g. /root/index.php

Code: Select all
<?php
setlocale(LC_CTYPE, 'C');
....


don't know why [can't explain in short words] but leads to acceptable results:

and known umlaut probs... so
ü --> stays ü but without setlocale....
ü --> might become....strange....

Another issue: think about phpMyAdmin. When you open it you will see:
MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: utf8_unicode_ci

and then two more crucial aspects follows:

A) Create new database --> select Collation
B) when installing phpwcms we must define
$phpwcms['db_charset'] = 'utf8'; or else
$phpwcms['db_collation'] = 'utf8_general_ci'; or else and this ONLY AFFECTS ONE TABLE (our phpwcms database) BUT NOT

MySQL charset: ...
MySQL connection collation: ...
and many web hoster, provider don't allow to change!
(phpMyAdmin running locally (XAMPP) grants much more rights than remote on a public web server!!!)

So, I guess, this might be one reason, because problems with character encodings after installation occurs...
Vielleicht klappt's ja mal morgen mit dem Frisörtermin.
User avatar
Jensensen
 
Posts: 2637
Joined: Tue Oct 17, 2006 19:11
Location: Rhein-Ruhr-Stever-Verse

Return to phpwcms Installation Troubleshooting English

Who is online

Users browsing this forum: Alexa [Bot], MSN [Bot] and 0 guests