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 Previous  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
fulbrich

Novice
Novice


Joined: Aug 18, 2005
Posts: 28
Location: NRW/Germany

PostPosted: Wed Aug 24, 2005 7:21 am    Post subject: Re: Special caracters Reply with quote

dari wrote: › 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.

Crying or Very sad
I changed lang-engish.php and lang-german.php to UTF-8 by changing to define("_CHARSET","UTF-8" ) . The behaviour didn't change. If I take at the look of the html-source by using my IE, it shows <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> in the head section. I was so hopefull that the workaround may work, it doesn't.

Bye
Frank

PHP-NUKE 7.5
Gallery2
G2-PHOTOBLOCK
Back to top
Offline View user's profile Send private message Visit poster's website
AdBot
   Post subject: Re: Special caracters  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Wed Aug 24, 2005 7:31 am    Post subject: Re: Special caracters Reply with quote

try changing the encoding scheme at the top of:
nuke-root/language/lang-<yourlanguage>.php
You will need to change:
define("_CHARSET","ISO-8859-1");
to
define("_CHARSET","UTF-8");

and in
nuke-root/modules/Forums/language/lang-<yourlanguage>.php
you'll have to do the same.
Back to top
Offline View user's profile Send private message Visit poster's website
fulbrich

Novice
Novice


Joined: Aug 18, 2005
Posts: 28
Location: NRW/Germany

PostPosted: Wed Aug 24, 2005 7:40 am    Post subject: Re: Special caracters Reply with quote

dari wrote: › try changing the encoding scheme at the top of:
nuke-root/language/lang-<yourlanguage>.php
You will need to change:
define("_CHARSET","ISO-8859-1");
to
define("_CHARSET","UTF-8");

and in
nuke-root/modules/Forums/language/lang-<yourlanguage>.php
you'll have to do the same.


Hi dari,
I changed in
C:\srv\www\Nuke75\html\modules\Forums\language\lang-english.php
C:\srv\www\Nuke75\html\language\lang-english.php
C:\srv\www\Nuke75\html\language\lang-german.php

Section of my language-file :
/*define("_CHARSET","ISO-8859-1");*/
define("_CHARSET","UTF-8");
define("_SEARCH","Search");


and I had no sucess.

This is the result in my NEWS Block in the middle of the page
----------------------------------------------------------------------
Willkommen ...
֠= OE Ġ= AE ߠ= SZ ܢel , Ħfeln User : gast Pw : gastuser
------------------------------------------------------------------------

The output is fine, when I remove the G2 Photoblock which shows random photos, from the webpage.


Last edited by fulbrich on Thu Aug 25, 2005 1:31 am; edited 1 time in total
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


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

PostPosted: Wed Aug 24, 2005 7:59 am    Post subject: Re: Special caracters Reply with quote

you might want to google around for methods of fixing this. i don't know of any others off the top of my head, and since my site is all english, i can't really test it here. i'd also suggest getting a petition, or something like that, sent to the developer of phpnuke requesting that he change the default charset to UTF-8.
Back to top
Offline View user's profile Send private message Visit poster's website
fulbrich

Novice
Novice


Joined: Aug 18, 2005
Posts: 28
Location: NRW/Germany

PostPosted: Wed Aug 24, 2005 8:12 am    Post subject: Re: Special caracters Reply with quote

dari wrote: › sent to the developer of phpnuke requesting that he change the default charset to UTF-8.


Dari,
thanks for your replies. The petition may be a good suggestion. I'll send them an email with my questions.

Just a last sentence :
The changes result is that this is now part of the htmlsource viewed by my IE :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Sitename </title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META NAME="RESOURCE-TYPE" CONTENT="DOCUMENT">
<META NAME="DISTRIBUTION" CONTENT="GLOBAL">
<META NAME="AUTHOR" CONTENT="Sitename">

The codepage is now UTF-8 and the IE selected Unicode. I have to switch back in IE to Western to get my german special characters. Nevertheless - Dari, thanks for your support. Idea


Last edited by fulbrich on Thu Aug 25, 2005 1:29 am; edited 1 time in total
Back to top
Offline View user's profile Send private message Visit poster's website
fulbrich

Novice
Novice


Joined: Aug 18, 2005
Posts: 28
Location: NRW/Germany

PostPosted: Wed Aug 24, 2005 8:46 am    Post subject: Re: Special caracters Reply with quote

Hi *

my next step is to convert the mySQL NUKE Database to UTF-8.
This may be a hint: http://cpgnuke.com/FAQ/cat=14.html#52
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


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

PostPosted: Wed Aug 24, 2005 9:06 am    Post subject: Re: Special caracters Reply with quote

please let us know if this works, this would make lots of people happy Smile
Back to top
Offline View user's profile Send private message Visit poster's website
fulbrich

Novice
Novice


Joined: Aug 18, 2005
Posts: 28
Location: NRW/Germany

PostPosted: Thu Aug 25, 2005 1:25 am    Post subject: Re: Special caracters Reply with quote

Hi Dari,
I tested the databaseconversion of PHP-Nuke 7.5 last night. It seems to work. Let me have some more testing and I'll write a little summary about this in the evening.
What I did :
I changed some lang-files in PHP-NUKE.
I created a new database with UTF-8 settings.
I exported the old data into a sql skript.
I converted the data with iconv.exe from latin to UTF-8.
I created the new tables with contence by using the modified sql skript in the new database.
What happened :
I changed the collation of the database, but not for each table and imported the converted data. It works, but I am not shure if this way is ok. Has each table collation to be converted, too ?

Bye Frank
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


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

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

it's the best we've got so far...keep up the good work and keep us filled in Smile
Back to top
Offline View user's profile Send private message Visit poster's website
fulbrich

Novice
Novice


Joined: Aug 18, 2005
Posts: 28
Location: NRW/Germany

PostPosted: Thu Aug 25, 2005 6:37 am    Post subject: Re: Special characters (national characters) Reply with quote

dari wrote: › it's the best we've got so far...keep up the good work and keep us filled in Smile

Hi dari,
I finished my documentation with screenshots and would like to convert it to PDF. Is it possible to upload/host my document somewhere on this website Question .


Last edited by fulbrich on Thu Aug 25, 2005 8:02 am; edited 1 time in total
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


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

PostPosted: Thu Aug 25, 2005 6:39 am    Post subject: Re: Special caracters Reply with quote

actually, if you email it to me: dari AT nukedgallery DOT net, I can convert to PDF and post it up here if you'd like.
Back to top
Offline View user's profile Send private message Visit poster's website
fulbrich

Novice
Novice


Joined: Aug 18, 2005
Posts: 28
Location: NRW/Germany

PostPosted: Thu Aug 25, 2005 3:03 pm    Post subject: Re: Special caracters Reply with quote

dari wrote: › actually, ... post it up here if you'd like.

Hi,
I finished my document and posted it to dari. Razz He will upload it to this site. I described what I did on 3 Nuke 7.5 installations. The procedure was successful on 2 installtion and failed on 1 Rolling Eyes ... unfortunetely my own homepage.

I am very interested in the experiences of other users.... maybe a bit is missing or can be added to the description. You can download it from my homepage as well, but the line is slow and not very relieable.

http://ulbrich.homelinux.com/modules.ph ... load&cid=3 (old version)


Last edited by fulbrich on Wed Aug 31, 2005 1:13 am; edited 1 time in total
Back to top
Offline View user's profile Send private message Visit poster's website
fulbrich

Novice
Novice


Joined: Aug 18, 2005
Posts: 28
Location: NRW/Germany

PostPosted: Mon Aug 29, 2005 2:23 am    Post subject: Re: Special caracters Reply with quote

Hello,
I did some more testings and found out, that this isn't a 100% solution. It is hard to say.... I have to go to Dragonfly (php-nuke version) or to copperfield. To be honest I am little bit disappointed. Sad Sad
I need national Characters on my website. Maybe I have to change the characters in the language-files to UTF Code, too ?


Last edited by fulbrich on Mon Aug 29, 2005 6:45 am; edited 1 time in total
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


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

PostPosted: Mon Aug 29, 2005 6:40 am    Post subject: Re: Special caracters Reply with quote

yes, the language files for phpnuke would have to be converted to UTF-8, as well.
Back to top
Offline View user's profile Send private message Visit poster's website
fulbrich

Novice
Novice


Joined: Aug 18, 2005
Posts: 28
Location: NRW/Germany

PostPosted: Wed Aug 31, 2005 1:12 am    Post subject: Re: Special caracters Reply with quote

dari wrote: › yes, the language files for phpnuke would have to be converted to UTF-8, as well.

Hi gari,
I think everything is fine, now. I substituted all national characters ÄäÜö ... in the language-german.php files. There is now no problem anymore with displaying this characters with gallery2 embedded. I updated my howto and sent it to you with PM (version 1.3). Maybe you like to upload it to your site.
Back to top
Offline View user's profile Send private message Visit poster's website
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 Previous  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: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannBluetooth HeadsetOnline internetSEOchina factoryDressesRestaurant Locatorandroid tablet

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