Special chars problem

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Nonnus
Posts: 19
Joined: Thu Oct 09, 2008 2:46 pm
Location: Portugal

Special chars problem

Post by Nonnus »

I have some problems with special characters in version 2.0.8.

In the instant response results the special chars are displayed like that:
Tutoriais Básicos
when it should be displayed like that:
Tutoriais Básicos

The rest of the front site is ok but there are other cases like in javascript window alert for session expiration and in Users Administration.

I searched for the msg in lag file but is ok, must be a problem in the script but I can't find the cause.

Is it solved in a new version?
Is there a tutorial about upgrading to a new version?
Thorsten
Posts: 15741
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which language do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Nonnus
Posts: 19
Joined: Thu Oct 09, 2008 2:46 pm
Location: Portugal

Post by Nonnus »

Hi, I use portuguese from portugal. I searched in the language file and everything seems ok.
Last edited by Nonnus on Tue Nov 04, 2008 11:03 am, edited 2 times in total.
Thorsten
Posts: 15741
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which encoding do you use in your browser and which encoding is chosen in the language file?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Nonnus
Posts: 19
Joined: Thu Oct 09, 2008 2:46 pm
Location: Portugal

Post by Nonnus »

Here it is:

file: language_pt.php

Code: Select all

$PMF_LANG["metaCharset"] = "iso-8859-1";
$PMF_LANG["metaLanguage"] = "pt";
$PMF_LANG["language"] = "Portuguese";

// two examples wich are not displaying right
// javascript alert
$PMF_LANG['ad_session_expiring'] = 'A sua sessão expira daqui a %d minutos: deseja continuar a trabalhar?';

// e-mail field label in users admin
$PMF_LANG["ad_entry_email"] = "Endereço e-mail:";
Last edited by Nonnus on Tue Nov 04, 2008 12:41 pm, edited 1 time in total.
Nonnus
Posts: 19
Joined: Thu Oct 09, 2008 2:46 pm
Location: Portugal

Post by Nonnus »

The problem is that it don't happens in all the site, only in the instant response results and in the two examples above, as I noticed.
Nonnus
Posts: 19
Joined: Thu Oct 09, 2008 2:46 pm
Location: Portugal

Post by Nonnus »

Still getting bad chars in Instant Response search results.
The pdf is being generated with bad chars too.
Anyone could help?
Post Reply