Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Special caracters
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
jupiter4

Beginner
Beginner


Joined: Aug 08, 2005
Posts: 7

PostPosted: Thu Aug 11, 2005 8:38 pm    Post subject: Special caracters Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: Special caracters  

Back to top
NoFantasy

Beginner
Beginner


Joined: May 01, 2005
Posts: 9

PostPosted: Tue Aug 16, 2005 7:42 am    Post subject: Re: Special caracters Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Tue Aug 16, 2005 9:20 am    Post subject: Re: Special caracters Reply with quote

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
Offline View user's profile Send private message Visit poster's website
NoFantasy

Beginner
Beginner


Joined: May 01, 2005
Posts: 9

PostPosted: Tue Aug 16, 2005 10:58 am    Post subject: Re: Special caracters Reply with quote

It says "no" Laughing
So, yes the output is correct in that case (no=norwegian).
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Tue Aug 16, 2005 11:00 am    Post subject: Re: Special caracters Reply with quote

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
Offline View user's profile Send private message Visit poster's website
NoFantasy

Beginner
Beginner


Joined: May 01, 2005
Posts: 9

PostPosted: Tue Aug 16, 2005 11:18 am    Post subject: Re: Special caracters Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Tue Aug 16, 2005 11:21 am    Post subject: Re: Special caracters Reply with quote

no i mean edit the header.php file of your phpnuke.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
NoFantasy

Beginner
Beginner


Joined: May 01, 2005
Posts: 9

PostPosted: Tue Aug 16, 2005 11:25 am    Post subject: Re: Special caracters Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Tue Aug 16, 2005 11:33 am    Post subject: Re: Special caracters Reply with quote

add this line:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
NoFantasy

Beginner
Beginner


Joined: May 01, 2005
Posts: 9

PostPosted: Tue Aug 16, 2005 11:39 am    Post subject: Re: Special caracters Reply with quote

Ok, we are talking about the same then Very Happy
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
Offline View user's profile Send private message
NoFantasy

Beginner
Beginner


Joined: May 01, 2005
Posts: 9

PostPosted: Tue Aug 16, 2005 11:59 am    Post subject: Re: Special caracters Reply with quote

I checked the encoding in my browser...both IE and Firefox reads the http://www.domain.com/modules.php?name=gallery2 as Unicode (UTF-Cool (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
Offline View user's profile Send private message
NoFantasy

Beginner
Beginner


Joined: May 01, 2005
Posts: 9

PostPosted: Tue Aug 16, 2005 12:13 pm    Post subject: Re: Special caracters Reply with quote

Ok, I'll do my research better next time Embarassed

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 Very Happy
Back to top
Offline View user's profile Send private message
jupiter4

Beginner
Beginner


Joined: Aug 08, 2005
Posts: 7

PostPosted: Wed Aug 17, 2005 2:42 am    Post subject: Re: Special caracters Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 17, 2005 6:19 am    Post subject: Re: Special caracters Reply with quote

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
Offline View user's profile Send private message Visit poster's website
NoFantasy

Beginner
Beginner


Joined: May 01, 2005
Posts: 9

PostPosted: Wed Aug 17, 2005 2:46 pm    Post subject: Re: Special caracters Reply with quote

jupiter4 wrote: › ....and replace all special caracters to html code


This is what I did too. Probably the fastest way to fix this problem, in my case it took 15 minutes to change the necessary chars to html-code.

I found the html-codes i needed at http://www.lookuptables.com/ (under the html-codes menu) if anyone else need to convert their special chars Very Happy
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Goto page 1, 2, 3  Next

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSEO Search Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaCheap Web Design

6th year online! 2003-2009
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia