A question about db_charset, db_collation, etc.

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

A question about db_charset, db_collation, etc.

Post by sustia »

Hi, I'm a little confused about db_charset, db_collation, ecc.

I would like to do a personal site about my travels, so I need to put names in italian, spanish, english, iceland language, etc.

In my phpmyadmin I see this one:

Image

and, in my conf.inc.php I have:

Code: Select all

$phpwcms['db_charset']        = 'latin1';
$phpwcms['db_collation']      = 'latin1_general_ci';


$phpwcms['charset']           = 'iso-8859-1';  //default charset 'iso-8859-1'
So I think I should change something, correct?
Maybe in my conf.inc.php I must put this values?

Code: Select all

$phpwcms['db_charset']        = 'utf8';
$phpwcms['db_collation']      = 'utf8_unicode_ci';


$phpwcms['charset']           = 'utf8';  //default charset 'iso-8859-1'
Thanks.
Campeones del mundo!
Vegetables!
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: A question about db_charset, db_collation, etc.

Post by Jensensen »

[x]
Last edited by Jensensen on Fri 19. Sep 2008, 21:43, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Re: A question about db_charset, db_collation, etc.

Post by sustia »

Ok Jensensen, thanks a lot.

I've modified my conf.inc.php to this:

Code: Select all

    $phpwcms['db_charset']        = 'utf8';
    $phpwcms['db_collation']      = 'utf8_unicode_ci';

    $phpwcms['charset']           = 'utf8';  //default charset 'iso-8859-1'

in order to prevent problems with some strange characters (like, for example, Vatnajökull).
Campeones del mundo!
Vegetables!
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: A question about db_charset, db_collation, etc.

Post by Jensensen »

[x]
Last edited by Jensensen on Fri 19. Sep 2008, 21:44, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Re: A question about db_charset, db_collation, etc.

Post by sustia »

Hi Jensensen, for now I don't have disposable vegetables :mrgreen:

Anyway, I already see the Iceland, tha last octuber, and I'm planning to put online that and some more trip I've done (not too much trips :wink: )

If you want to see something about Vatnajökull glacier (and Iceland in general) maybe you will find interesting this pictures:

http://flickr.com/photos/sustia/1707335241/
http://flickr.com/photos/sustia/1743259960/

Others will follow soon (I hope).
Campeones del mundo!
Vegetables!
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: A question about db_charset, db_collation, etc.

Post by update »

Very beautiful scenery :)
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Post Reply