PHP-Nuke Services - Addons, Modules, Blocks Vizitati www.westdesign.ro Select Interface Language:EnglishRomanian
  Login or Register HomeForumsDownloadsYour AccountWeb LinksContact   
SectionsShow\Hide
MultiheadlinesShow\Hide
LoginShow\Hide
~ Welcome, alien
Nickname Password
(Register)

~ Membership:

Greetings to the newest member aleksone
~ New Today: 0
~ New Yesterday: 0
~ Overall: 3655

~ People Online:
~ Visitors: 9
~ Members: 0
~ Total: 9
~Aikon is offline
on Yahoo Msg.
Link to meShow\Hide

aikons.net
Search in FeedsShow\Hide
Search in feeds
HistoryShow\Hide
On 21 November


Speed Up   Pause   Speed Down
DictionaryShow\Hide
Enter the word

Romanian users only

Situl personal NICU RANCOV Forum Index


Reply to topic Page 1 of 1
Multiheadlines 2.1 Charset problem
Message Author
Reply with quote
Post Posted: Monday 04 August, 2008 12:52

Hi all,

Who can help me? I'm looking for some ideas.

Well, i used the multiheadlines for a long time. Very nice program.
For the first time in php-nuke, then with some changes in nuke-evo 1.0.2 (german edition), and later with american version of evo.
Now i have installed me the third beta from the newest evo 2.1.0.
There is the default charset utf-8 in all languages.

I have selected rss-feeds from germans first soccer-magazin kicker. Now in my block 'Multiheadlines-Center' i have any problems with some symbols, f.i. the german letter
ä,ö,ü and so on.

Have i to change some code in the function.php? On line 258, there is using the utf-8 encoding?

You can see it my problem on my p a g e

Thanks for your help.
Cheers Kai

View user's profile Send private message
Reply with quote
Post Posted: Tuesday 05 August, 2008 10:56

Hello Kai

I'm not sure how the feeds are encoded on the original site.
If you instruct/set your browser to show your site in ISO-8859-1 encoding[via menu->view->encoding] the text in the block will be fine.
So I guess the feeds are ISO-8859-1 encoded. Since your page/site have UTF-8 charset...that's why you see what you see right now.
The solution would be to convert all the ISO-8859-1 encoded text to UTF-8...somehow inverse how it's right now on the 258 line...so instead.

Code:
if ($encoding=="UTF-8") {
   $string=utf8_decode($string);
}

you would have something like

Code:

if ($encoding!="UTF-8") {
   $string=utf8_encode($string);
}

(after that wait until the block refreshes itself to see the effect)

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Tuesday 05 August, 2008 21:27

Hi Aikon,

GREAT JOB, fine - it's working now.
On my page, i have installed a mix between your multiheadline versions 2.0 and 2.1.
In the next days i want to install the final version 2.1. Well, at the moment i use only the rss-block (multiheadlines-center).
Your program have a lot of more possibilities.

Kai

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
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
  


Page Generation: 0.45 Seconds