Page 1 of 1

Problem with letter Å

Posted: Tue Nov 07, 2006 5:39 pm
by windsock
Script URL:http://windsock.dk/mboard/mboard.php
Version of script:1.22
Hosting company:boras-flygplats.o.se
URL of phpinfo.php:http://windsock.dk/mboard/mboard.php
URL of session_test.php:http://www.windsock.dk/test.php
What terms did you try when SEARCHING for a solution:
Canges charset to ISO-8859-1
Write your message below:

Hi; And thanks for your free scripts!
(I posted in the the wrong board, Sorry)

I have used your Message board script to our club web-site at
http://www.boras-flygplats.o.se/ultralatt/index.htm
The index for the forum is placed at http://www.windsock.dk/mboard/mboard.php
I have a small problem that I need to ask you about.
In the message all Å is appear as p&#229 I have no problem with Ä and Ö.

I changes the charset to ISO-8859-1 in the mboard.php and also in the index htm.
I doesn't know if this is the right thing to do?
Anyway I had made a completely translation of this Forum to Swedish and as soon it works I send you a zip-file with the translation.
Thanks/Peter

Posted: Wed Nov 08, 2006 8:27 am
by Klemen
Hi,

Try this - in mboard.php change line 716 from

Code: Select all

        $in = htmlspecialchars($in);
to (add one more line)

Code: Select all

        $in = htmlspecialchars($in);
        $in = preg_replace('/&(\#[0-9]+;)/','&$1',$in);
Let me now if that works.

It's works !!

Posted: Fri Nov 24, 2006 8:07 am
by windsock
Hi Klemen
I changed the line as your suggest and now it's works, Thanks a lot.
By the way, I have another small question to you, I need a search function in the script
That's searching into the Html files, I find a Forum here in Sweden that have ad this function
Look here: http://www.slottsberg.educ.goteborg.se/ ... rd.php#new
Its open up all the Html files so you have a better overview for your search.
Is that something you made or is it necessary for me to make it by myself.

We are a lot of members in our flight club an I expect that we will have
many topics during a year, this function makes in more easy to find old subjects.
Thanks for your help/ best regards Peter

http://www.boras-flygplats.o.se/ultralatt/index.htm

Posted: Fri Nov 24, 2006 3:11 pm
by Klemen
Here is one suggestion
viewtopic.php?t=343