Author |
Message |
Anders
Worker


Joined: Jun 16, 2004
Posts: 159
Location: Sweden
|
Posted:
Tue Sep 16, 2014 2:32 pm |
|
|
|
 |
neralex
Site Admin

Joined: Aug 22, 2007
Posts: 1775
|
Posted:
Wed Sep 17, 2014 12:15 pm |
|
Tested with php 5.3.x, 5.4.x and 5.5.x - all without this issue.
I'm not sure if it could help you but you can try to test this one. Make a back of this file before you are start to change it!!!!
open modules/Forums/viewforum.php
find:
php Code:$template->assign_vars(array(
'FORUM_ID' => $forum_id,
'FORUM_NAME' => $forum_row['forum_name'],
|
change it to:
php Code:$template->assign_vars(array(
'FORUM_ID' => $forum_id,
#'FORUM_NAME' => $forum_row['forum_name'],
'FORUM_NAME' => htmlspecialchars($forum_row['forum_name'], ENT_QUOTES, _CHARSET),
|
find:
php Code:'TOPIC_TITLE' => $topic_title,
|
change it to:
php Code:'TOPIC_TITLE' => htmlspecialchars($topic_title, ENT_QUOTES, _CHARSET),
|
Compare it on this URL: http://hog.thehunters.se/modules.php?name=Forums&file=viewforum&f=1
Try to cange the title of the topic with another specialchars instead only ö, maybe with "é äü ß" etc. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
Anders

|
Posted:
Wed Sep 17, 2014 12:30 pm |
|
Ok take a look and thats after code changes so its still same |
|
|
|
 |
Anders

|
Posted:
Wed Sep 17, 2014 12:34 pm |
|
and in forum Management its look like it should after save
é äü ß Å ä Ö and on index é äü ß Ã… Ä Ö |
|
|
|
 |
neralex

|
Posted:
Wed Sep 17, 2014 1:30 pm |
|
Tested with php 5.3.x, 5.4.x and 5.5.x - all without this issue. I'm out here. |
|
|
|
 |
Anders

|
Posted:
Wed Sep 17, 2014 2:16 pm |
|
have talking to host so now its just to wait and see....thx for help |
|
|
|
 |
Anders

|
Posted:
Fri Nov 21, 2014 9:59 am |
|
Hi i did solve it.... in modules/forum/language/lang_english was
Code:$lang['ENCODING'] = 'utf-8';
|
i did change this to
Code:$lang['ENCODING'] = 'iso-8859-1';
|
And that did do the trick |
|
|
|
 |
neralex

|
Posted:
Fri Nov 21, 2014 12:42 pm |
|
Why do you have it changed before to utf-8? the default setting in the download package is the ISO encoding. |
|
|
|
 |
Anders

|
Posted:
Fri Nov 21, 2014 2:00 pm |
|
Then i think you should open your eyes again and download the distro and have one more look
orginal says in modules/forum/language/lang-english/lang_main.php
Quote: | $lang['ENCODING'] = 'utf-8'; |
|
|
|
|
 |
neralex

|
Posted:
Fri Nov 21, 2014 2:38 pm |
|
Ok i have it mistaken with the lang-definition define('_CHARSET','ISO-8859-1'); but the strange thing is, $lang['ENCODING'] isn't in use with all themes. The related tpl-files are still exist but all are not in use. But that would be explain some issues that i got few years ago. I will play with it. Thanks for the info! |
|
|
|
 |
Anders

|
Posted:
Fri Nov 21, 2014 2:49 pm |
|
Ok cool it did take me some time to find this darn thing
hehe today i did compair german and english forum lang before you said it did work for you....its bad i not find this b4...so i did go over to phpbb3 with portal...but now i maybe change back when the darn Å Ä Ö works lol |
|
|
|
 |
neralex

|
Posted:
Fri Nov 21, 2014 2:56 pm |
|
Which theme you are using? |
|
|
|
 |
Anders

|
Posted:
Fri Nov 21, 2014 3:00 pm |
|
|
|
 |
neralex

|
Posted:
Fri Nov 21, 2014 3:06 pm |
|
I don't get this issue on my own web server and also not on my local wamp server. I have it tested with all themes in the package. There is all fine.
So it must be a issue on "your" side. Maybe through restrictions or settings by your current webhosting company. |
|
|
|
 |
Anders

|
Posted:
Fri Nov 21, 2014 3:15 pm |
|
Probly webhost but it works now..so iam happy |
|
|
|
 |
Anders

|
Posted:
Sat Nov 22, 2014 10:55 am |
|
have notise some problem when saving code with out bom and with utf-8 i use notepad ++... |
|
|
|
 |
neralex

|
Posted:
Sun Nov 23, 2014 5:53 am |
|
|
|
 |
|