| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
callidus Newbie


Offline Joined: Jul 20, 2004 Posts: 10 Location: Sweden
|
Posted: Mon Jul 26, 2004 8:48 am Post subject: Message unreadable |
|
Hi
After I upgraded cpgnuke from 8.2a to 8.2b this problem appeared:
"...ett medlemsblad, Bor���¥s Sl���¤ktblad, som utkommer med 4 - 5 nummer per ���¥r. F���¶rutom att informera..."
It only appeares when I write a message from Admin menu, Messages and save it. All other places are showing the text and tittles as it should be.
Can it be related to utf-8 somehow?
My question is:
Where and what can I do to correct this problem?
/Bosse
callidus's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP/1.3/4x/4x
|
|
| Back to top |
|
 |
Śyama_Dāsa Developer


Offline Joined: Apr 19, 2004 Posts: 2048 Location: Dragonfly CMS Tribe
|
Posted: Mon Jul 26, 2004 7:03 pm Post subject: Re: Message unreadable |
|
which language?
_________________ AKA Akamu / Read these and your life will be successful | Find a Repair
--
Mods and Professional Support via YIM
Śyama_Dāsa's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) win32 / Apache 1.3.33 / MySQL 4.1.16/PHP 4.4/CPG-CVS ( browsers: Mozilla 1.7.x / IE6 / Opera 8.0)
|
|
| Back to top |
|
 |
callidus Newbie


Offline Joined: Jul 20, 2004 Posts: 10 Location: Sweden
|
Posted: Mon Jul 26, 2004 7:07 pm Post subject: Re: Message unreadable |
|
swedish
callidus's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP/1.3/4x/4x
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Mon Jul 26, 2004 9:15 pm Post subject: Re: Message unreadable |
|
URL ?
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
callidus Newbie


Offline Joined: Jul 20, 2004 Posts: 10 Location: Sweden
|
Posted: Mon Jul 26, 2004 10:06 pm Post subject: Re: Message unreadable |
|
callidus's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP/1.3/4x/4x
|
|
| Back to top |
|
 |
wi777 Newbie


Offline Joined: Apr 20, 2004 Posts: 44 Location: Taiwan
|
Posted: Mon Jul 26, 2004 11:14 pm Post subject: Re: Message unreadable |
|
this is what happen to mine too in Chinese language.
wi777.homelinux.net/index.php
I posted that problem on
cpgnuke.com/Forums/vie...=2462.html
wish someone could tell me
what is htmlentities function for? or
what is
_________________

wi777's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) WINXP SP2/ apache 2.0.54/ php 5.0/ mysql 4.1
Last edited by wi777 on Wed Jul 28, 2004 7:25 am; edited 1 time in total |
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Tue Jul 27, 2004 12:56 am Post subject: Re: Message unreadable |
|
Hmm it seems that it only happens on the index messages, you both don't have the problem somewhere else ?
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
wi777 Newbie


Offline Joined: Apr 20, 2004 Posts: 44 Location: Taiwan
|
Posted: Tue Jul 27, 2004 3:14 am Post subject: Re: Message unreadable |
|
| DJMaze wrote: |
| Hmm it seems that it only happens on the index messages, you both don't have the problem somewhere else ? |
In (HeadLine) News is OK to display charactors noramelly in Chinese exclude displayed timezone.
There should be replacement in html/mainfile.php of 8.2b if httpd in Windows XP.
find
| PHP: |
return utf8_encode($datetime);
|
| PHP: |
$datetime = mb_convert_encoding($datetime,"utf-8","big5"); return $datetime; // return utf8_encode($datetime);
|
8.2b almost use utf8_encode everywhere, isn't it?
read references about how to enable php extesion mb_convert_encoding statement here .
cpgnuke.com/Forums/vie...=1995.html
_________________

wi777's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) WINXP SP2/ apache 2.0.54/ php 5.0/ mysql 4.1
|
|
| Back to top |
|
 |
callidus Newbie


Offline Joined: Jul 20, 2004 Posts: 10 Location: Sweden
|
Posted: Tue Jul 27, 2004 11:32 am Post subject: Re: Message unreadable |
|
| DJMaze wrote: |
| Hmm it seems that it only happens on the index messages, you both don't have the problem somewhere else ? |
For me the problem don't appear anyware else. I have done some more tests with articles and index message on the website.
callidus's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP/1.3/4x/4x
|
|
| Back to top |
|
 |
wi777 Newbie


Offline Joined: Apr 20, 2004 Posts: 44 Location: Taiwan
|
Posted: Wed Jul 28, 2004 7:45 am Post subject: Re: Message unreadable |
|
here comes fixed for the admin message
find the following string in includes/messagebox.php
| PHP: |
$title = utf8_encode($title); $content = $row['content']; $content = utf8_encode($content);
|
remove utf8_encode function statement with //
result
| PHP: |
// $title = utf8_encode($title); $content = $row['content']; // $content = utf8_encode($content);
|
for edit message in admin page
edit admin/modules/messages.php
find
| PHP: |
$title = htmlentities($title, ENT_NOQUOTES); // darkgrue $content = htmlentities($content, ENT_NOQUOTES); // darkgrue
|
remove above htmlentities function statement with // symbol
then 8.2b could be working well
thanks for reading
_________________

wi777's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) WINXP SP2/ apache 2.0.54/ php 5.0/ mysql 4.1
|
|
| Back to top |
|
 |
callidus Newbie


Offline Joined: Jul 20, 2004 Posts: 10 Location: Sweden
|
Posted: Wed Jul 28, 2004 10:20 am Post subject: Re: Message unreadable |
|
| wi777 wrote: |
here comes fixed for the admin message
find the following string in includes/messagebox.php
...
edit admin/modules/messages.php
...
then 8.2b could be working well
|
Hi and thanks
It all worked well.
But, I also use some blocks with text in and there are the problem as before with the swedish characters.
Thanks for your time
callidus's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP/1.3/4x/4x
|
|
| Back to top |
|
 |
wi777 Newbie


Offline Joined: Apr 20, 2004 Posts: 44 Location: Taiwan
|
Posted: Wed Jul 28, 2004 11:58 pm Post subject: Re: Message unreadable |
|
| callidus wrote: |
It all worked well.
But, I also use some blocks with text in and there are the problem as before with the swedish characters.
|
can you tell me the blocks-name(or block filename) you mention, wish I can help you here APAIC.
_________________

wi777's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) WINXP SP2/ apache 2.0.54/ php 5.0/ mysql 4.1
|
|
| Back to top |
|
 |
callidus Newbie


Offline Joined: Jul 20, 2004 Posts: 10 Location: Sweden
|
Posted: Thu Jul 29, 2004 6:41 am Post subject: Re: Message unreadable |
|
| wi777 wrote: |
can you tell me the blocks-name(or block filename) you mention, wish I can help you here APAIC. |
I tried to understand what block that is involved but I write directly in the textbox under all blocks to choose. In the field "filename" I don't change anything, it say "none".
callidus's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP/1.3/4x/4x
|
|
| Back to top |
|
 |
wi777 Newbie


Offline Joined: Apr 20, 2004 Posts: 44 Location: Taiwan
|
Posted: Thu Jul 29, 2004 7:25 am Post subject: Re: Message unreadable |
|
| callidus wrote: |
I tried to understand what block that is involved but I write directly in the textbox under all blocks to choose. In the field "filename" I don't change anything, it say "none". |
what you mean is charactors displayed issue at textblock on homepage.
try edit html/mainfile.php
| PHP: |
themecenterbox($title, utf8_encode($content));
|
| PHP: |
themesidebox($title, utf8_encode($content), $bid);
|
remove utf8_encode statement
result
| PHP: |
themecenterbox($title, $content);
|
| PHP: |
themesidebox($title, $content, $bid);
|
may I have question ? is it displayed normal at blocks management on admin page while you wanna edit textblock ?
because mine seem look like normally.
_________________

wi777's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) WINXP SP2/ apache 2.0.54/ php 5.0/ mysql 4.1
|
|
| Back to top |
|
 |
callidus Newbie


Offline Joined: Jul 20, 2004 Posts: 10 Location: Sweden
|
Posted: Thu Jul 29, 2004 9:20 am Post subject: Re: Message unreadable |
|
| wi777 wrote: |
what you mean is charactors displayed issue at textblock on homepage.
try edit html/mainfile.php
...
remove utf8_encode statement
...
may I have question ? is it displayed normal at blocks management on admin page while you wanna edit textblock ?
because mine seem look like normally. |
Yes!
It worked. I have no more problem, that I know about, with funny characters, it show as it should.
Thanks
Answer:
When I typing the text everything is showing as it should. When I have saved the block it will show wrong in admin and user view.
callidus's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP/1.3/4x/4x
|
|
| Back to top |
|
 |
|
|