| Author |
Message |
jupiter4
Beginner


Joined: Aug 08, 2005 Posts: 7
|
Posted: Thu Aug 11, 2005 8:38 pm Post subject: Special caracters |
|
|
Hello,
I have integrated Gallery2 on my PHP Nuke Platinum 7.6 website. Almost all seems to be working fine.
There is a little problem that begun when I have integrated the gallery.
I'm portuguese, so my website as portuguese language as an option, in fact is the default language and portuguese language uses special caracters as ç é í à õ etc, etc.
This caraters don't show up anymore. In their place, there is a small square. This is very anoying ...
Is there a way to fix this? Anyone as any ideas ? Dari ?
Thank you in advance
PS: This is the website: http://lightcrew.net/website/index.php
(I have already changed some in the navigation menu, using html code ) |
|
| Back to top |
|
|
AdBot
|
| Post subject: Special caracters |
|
|
|
|
|
| Back to top |
|
 |
NoFantasy
Beginner


Joined: May 01, 2005 Posts: 9
|
Posted: Tue Aug 16, 2005 7:42 am Post subject: Re: Special caracters |
|
|
I have the same issue with my installation (Nuke 7.5, gallery 2RC1(build 34))
I had the same issue with Gallery2 beta4.
I'm not sure if its a problem with Gallery itself or the integreation-package (actually, i do not know where to start looking).
I have tried to change some basic stuff as the standard-language in Gallery to English but without any luck.
Hope any of the gallery-guru's have any ideas, in the meantime i'll look for a solution myself. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Aug 16, 2005 9:20 am Post subject: Re: Special caracters |
|
|
in modules/gallery2/index.php look for:
$g2currentlang = $phpnuke2G2Lang[$currentlang];
and put
echo $g2currentlang;
after it to see if it outputs your proper language. |
|
| Back to top |
|
|
NoFantasy
Beginner


Joined: May 01, 2005 Posts: 9
|
Posted: Tue Aug 16, 2005 10:58 am Post subject: Re: Special caracters |
|
|
It says "no"
So, yes the output is correct in that case (no=norwegian). |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Aug 16, 2005 11:00 am Post subject: Re: Special caracters |
|
|
actually, i think i know the problem here. Gallery2 is a UTF-8 application, whereas phpnuke sends it's headers as ISO-8859-1.....
you can try to edit your phpnuke header file so that the ISO portion is replaced by UTF-8. |
|
| Back to top |
|
|
NoFantasy
Beginner


Joined: May 01, 2005 Posts: 9
|
Posted: Tue Aug 16, 2005 11:18 am Post subject: Re: Special caracters |
|
|
Not sure if I understood you right.
Edit the ../language/'currentlang'.php ...?
Code: › define("_CHARSET","ISO-8859-1");
to
Code: › define("_CHARSET","UTF-8");
or...? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Aug 16, 2005 11:21 am Post subject: Re: Special caracters |
|
|
| no i mean edit the header.php file of your phpnuke. |
|
| Back to top |
|
|
NoFantasy
Beginner


Joined: May 01, 2005 Posts: 9
|
Posted: Tue Aug 16, 2005 11:25 am Post subject: Re: Special caracters |
|
|
Hm ok...Guess there's some kind of differenses here.
This is the latest header.php [sourceforge.net] for nuke 7.5 and i can't find anything to edit... |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Aug 16, 2005 11:33 am Post subject: Re: Special caracters |
|
|
add this line:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> |
|
| Back to top |
|
|
NoFantasy
Beginner


Joined: May 01, 2005 Posts: 9
|
Posted: Tue Aug 16, 2005 11:39 am Post subject: Re: Special caracters |
|
|
Ok, we are talking about the same then
That meta-tag is defined in the language-file (../includes/meta.php gets it from the languagefile).
Code: › define("_CHARSET","ISO-8859-1");
to
Code: › define("_CHARSET","UTF-8");
Anyway, i've changed it to UTF-8 without any luck. Still showing up with the strange chars... |
|
| Back to top |
|
|
NoFantasy
Beginner


Joined: May 01, 2005 Posts: 9
|
Posted: Tue Aug 16, 2005 11:59 am Post subject: Re: Special caracters |
|
|
I checked the encoding in my browser...both IE and Firefox reads the http://www.domain.com/modules.php?name=gallery2 as Unicode (UTF- (even with the <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> in header)
When I manually choose Western European (ISO) it shows up as it's supposed to, with all the special chars.
Any idea how to solve this permanently? Is it just my site or is it every site with special characthers? |
|
| Back to top |
|
|
NoFantasy
Beginner


Joined: May 01, 2005 Posts: 9
|
Posted: Tue Aug 16, 2005 12:13 pm Post subject: Re: Special caracters |
|
|
Ok, I'll do my research better next time
Seems to me alot of people has the same issue around the world and not only with php-nuke:
http://gallery.menalto.com/index.php?na ... ic&t=33361
Pity the developers do not consider this issue as a "bug" or seem to be willing to fix or suggest any solutions to the problem that works. If I find anything that may work permanently, i'll let you guys know.
Thanks for your time Dari, at least I got to try out some of the possibilities  |
|
| Back to top |
|
|
jupiter4
Beginner


Joined: Aug 08, 2005 Posts: 7
|
Posted: Wed Aug 17, 2005 2:42 am Post subject: Re: Special caracters |
|
|
Hello,
I have tried to add that code line to the nuke header.php. Didin't worked, in fact it got worse, I mean, this problem only happens when the gallery is showing, but with that code line added to the header file, the problem happens everytime in every page.
So, for now, I'm just changing the nukes portuguese language files and replace all special caracters to html code.
Thank you for your help guys. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Aug 17, 2005 6:19 am Post subject: Re: Special caracters |
|
|
| the problem is that Gallery2 is a UTF-8 application, and PHPNuke is ISO-8859-1. THe conflicting headers mangle the character sets. There's not much you can do about this other than change phpnuke's header to output UTF-8 as the charset. |
|
| Back to top |
|
|
NoFantasy
Beginner


Joined: May 01, 2005 Posts: 9
|
|
| Back to top |
|
|
|
|
|
|
|