Charset problem with PHPMYFAQ
Moderator: Thorsten
Charset problem with PHPMYFAQ
Iam having problems with chars like ççç ááá ééé in PHPMYFAQ.
I don't know if it's a SuseLinux configuration or event MYSQL configuration.
Could anyone help me?
Conteúdo: - “add host†adds a computer to the list of computers that you want PATROL Integration for Tivoli to manage - “update host†modifies the configuration ..
I don't know if it's a SuseLinux configuration or event MYSQL configuration.
Could anyone help me?
Conteúdo: - “add host†adds a computer to the list of computers that you want PATROL Integration for Tivoli to manage - “update host†modifies the configuration ..
Re: Charset problem with PHPMYFAQ
Hi,
which language do you use?
bye
Thorsten
which language do you use?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Charset problem with PHPMYFAQ
I use portuguese from Brasil.
Re: Charset problem with PHPMYFAQ
Hi,
can you show me your FAQ?
bye
Thorsten
can you show me your FAQ?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Charset problem with PHPMYFAQ
Sure!
See attached image, please.
See attached image, please.
You do not have the required permissions to view the files attached to this post.
Re: Charset problem with PHPMYFAQ
Hi,
I think I know the problem. It looks like you use UTF-8 as charset in the database, but the language file for Brazilian Portuguese is ISO-8859-1. This cripples some characters...
bye
Thorsten
I think I know the problem. It looks like you use UTF-8 as charset in the database, but the language file for Brazilian Portuguese is ISO-8859-1. This cripples some characters...
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Charset problem with PHPMYFAQ
Hi, it's me again... Sorry to bother you this much!
I don't know if Leoh could fix the problem but I'm having the same issue. I'm using Finnish in my site and the database charset is latin1. Still a and o with dots above (ä and ö, are they shown here..?) are saved to database as question marks. Now, the site is not in my localhost but on my company's server. Any ideas where I should start from?
I don't know if Leoh could fix the problem but I'm having the same issue. I'm using Finnish in my site and the database charset is latin1. Still a and o with dots above (ä and ö, are they shown here..?) are saved to database as question marks. Now, the site is not in my localhost but on my company's server. Any ideas where I should start from?
Re: Charset problem with PHPMYFAQ
Hi Johanna,
no problem.
You shouldn't get any of the charset problems... as finnish characters are almost the same like in German I tested that and everything works here on my test installations. Do you have special configurations for PHP/MySQL?
bye
Thorsten
no problem.
You shouldn't get any of the charset problems... as finnish characters are almost the same like in German I tested that and everything works here on my test installations. Do you have special configurations for PHP/MySQL?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Charset problem with PHPMYFAQ
I asked about special configurations and they said the database may force data to be utf-8. So I have to find a solution for this. Thanks for showing me the way!
Re: Charset problem with PHPMYFAQ
Hi,
bye
Thorsten
this is the problem.johanna wrote:I asked about special configurations and they said the database may force data to be utf-8.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Charset problem with PHPMYFAQ
Yes, you were right!
I solved the problem in /inc/Init.php:
Find:
Replace:
The last line is added.
I solved the problem in /inc/Init.php:
Find:
Code: Select all
$db = PMF_Db::db_select($DB['type']);
$db->connect($DB['server'], $DB['user'], $DB['password'], $DB['db']);
Code: Select all
$db = PMF_Db::db_select($DB['type']);
$db->connect($DB['server'], $DB['user'], $DB['password'], $DB['db']);
$db->query("SET NAMES 'latin1';");
Re: Charset problem with PHPMYFAQ
Hi,
yes, this is the solution.
bye
Thorsten
yes, this is the solution.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist