Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 05:53 pm EST
Geeklog Forums
Warning: mb_substr(): Unknown encoding "windows-1250" in calendar.php on line 163
i upgraded from 1.3.11 to 1.4
when i go to calendar.php
i get 14 of theese
Warning: mb_substr(): Unknown encoding "windows-1250" in /.../calendar.php on line 163
down below calendar displays correctly (as far as i can tell)
i yust comented out this (163) line
//$shortday = mb_substr ($LANG30[$day], 0, 2, $LANG_CHARSET);
& the problem is no more
but is it ok to coment it out?
when i tested it out i have seen that in event.php there are no
*
(this is in slovene)Naslov dogodka:
Dovoljeni HTML ukazi: <p>, <strong>, <b>, <i>, <a>, <em>, <br>, <tt>, <hr>, <li>, <ol>, <ul>, <code>, <pre>, <div>, <span>, <table>, <tr>, <th>, <td>, <img>, <font>, [code], [page_break], <a href="http://www.geeklog.net/article.php/"></a>, <a href="http://www.geeklog.net/calendar_event.php?eid="></a>, <a href="http://www.geeklog.net/staticpages/index.php/"></a>, <a href="http://www.geeklog.net/links/portal.php/link/"></a>
Hits: 0
*
yust
:
:
even the choose box is empty
even if i do not coment out the line 163
when i go to calendar.php
i get 14 of theese
Warning: mb_substr(): Unknown encoding "windows-1250" in /.../calendar.php on line 163
down below calendar displays correctly (as far as i can tell)
i yust comented out this (163) line
//$shortday = mb_substr ($LANG30[$day], 0, 2, $LANG_CHARSET);
& the problem is no more
but is it ok to coment it out?
when i tested it out i have seen that in event.php there are no
*
(this is in slovene)Naslov dogodka:
Dovoljeni HTML ukazi: <p>, <strong>, <b>, <i>, <a>, <em>, <br>, <tt>, <hr>, <li>, <ol>, <ul>, <code>, <pre>, <div>, <span>, <table>, <tr>, <th>, <td>, <img>, <font>, [code], [page_break], <a href="http://www.geeklog.net/article.php/"></a>, <a href="http://www.geeklog.net/calendar_event.php?eid="></a>, <a href="http://www.geeklog.net/staticpages/index.php/"></a>, <a href="http://www.geeklog.net/links/portal.php/link/"></a>
Hits: 0
*
yust
:
:
even the choose box is empty
even if i do not coment out the line 163
15
14
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
As the comments above that function indicate, the use of mb_substr there was meant as a workaround. Seems like you found a case where that workaround fails ...
If you don't use UTF-8 encoding, then use this workaround for the workaround:
// $mb_enabled = function_exists ('mb_substr');
$mb_enabled = false;
}
And please submit a bugreport so we can look into a better solution for future versions.
bye, Dirk
If you don't use UTF-8 encoding, then use this workaround for the workaround:
Text Formatted Code
if (!isset ($mb_enabled)) {// $mb_enabled = function_exists ('mb_substr');
$mb_enabled = false;
}
And please submit a bugreport so we can look into a better solution for future versions.
bye, Dirk
10
14
Quote
Status: offline
gape
Forum User
Full Member
Registered: 05/30/02
Posts: 138
not sure, so i better ask
instead of this code:
// when mb_substr is available, use it
// $shortday = mb_substr ($LANG30[$day], 0, 2, $LANG_CHARSET);
$shortday = mb_substr ($LANG30[$day], 0, 2);
}
i put your code
?
the funny thing is, that i first upgraded one other geeklog & that one does not have those simptoms ...
the bug report
http://project.geeklog.net/tracker/index.php?func=detail&aid=524&group_id=6&atid=105
ps
allmost finished with translations ...
i tried with english language file & there is that same result ...
instead of this code:
Text Formatted Code
if ($mb_enabled) {// when mb_substr is available, use it
// $shortday = mb_substr ($LANG30[$day], 0, 2, $LANG_CHARSET);
$shortday = mb_substr ($LANG30[$day], 0, 2);
}
i put your code
Quote by Dirk:
// $mb_enabled = function_exists ('mb_substr');
$mb_enabled = false;
}
Text Formatted Code
if (!isset ($mb_enabled)) {// $mb_enabled = function_exists ('mb_substr');
$mb_enabled = false;
}
?
the funny thing is, that i first upgraded one other geeklog & that one does not have those simptoms ...
the bug report
http://project.geeklog.net/tracker/index.php?func=detail&aid=524&group_id=6&atid=105
ps
allmost finished with translations ...
i tried with english language file & there is that same result ...
10
13
Quote
Status: offline
gape
Forum User
Full Member
Registered: 05/30/02
Posts: 138
now i got it
warnings are gone
but ... i still have the problem regarding
non existent values right before and after the
:
in admin/event.php
in all skins
is it possible that it would be language file problem
(i tested it with englih ant it is the same prob)
11
11
Quote
Status: offline
gape
Forum User
Full Member
Registered: 05/30/02
Posts: 138
Quote by gape: but ... i still have the problem regarding
non existent values right before and after the
:
in admin/event.php
in all skins
(i tested it with englih ant it is the same prob)
non existent values right before and after the
:
in admin/event.php
in all skins
(i tested it with englih ant it is the same prob)
i tested it with englih utf-8
the same
thingy looks like this
http://www.gape.org/temp/event.gif
12
11
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The drop-down is for the post mode and the line below that is for the hits counter. Both are new features in 1.4.0. Since you obviously have an updated theme and your language file is okay, that can only mean that admin/event.php is not up to date (i.e. is still the one from 1.3.11).
bye, Dirk
bye, Dirk
10
15
Quote
All times are EST. The time is now 05:53 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content