Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ Languages and alternative language support ⇒ i18n - l10n (languages) :: Archives ⇒ Message unreadable :: Archived


Message unreadable :: Archived
Want a language pack or convertor? Have feedback on either of these? Are you a developer of one of these? Here is the place to post. Read the announcements here first!
Go to page 1, 2  Next
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  i18n - l10n (languages)

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

Offline Offline
Joined: Jul 20, 2004
Posts: 10
Location: Sweden
PostPosted: 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
View user's profile Visit poster's website ICQ Number
Śyama_Dāsa
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 2048
Location: Dragonfly CMS Tribe
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
callidus
Newbie
Newbie

Offline Offline
Joined: Jul 20, 2004
Posts: 10
Location: Sweden
PostPosted: 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
View user's profile Visit poster's website ICQ Number
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
callidus
Newbie
Newbie

Offline Offline
Joined: Jul 20, 2004
Posts: 10
Location: Sweden
PostPosted: Mon Jul 26, 2004 10:06 pm
Post subject: Re: Message unreadable

www.silvana.se/bsf/


callidus's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
XP/1.3/4x/4x
Back to top
View user's profile Visit poster's website ICQ Number
wi777
Newbie
Newbie

Offline Offline
Joined: Apr 20, 2004
Posts: 44
Location: Taiwan
PostPosted: 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
PHP:

_________________


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
View user's profile Visit poster's website Yahoo Messenger
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
wi777
Newbie
Newbie

Offline Offline
Joined: Apr 20, 2004
Posts: 44
Location: Taiwan
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger
callidus
Newbie
Newbie

Offline Offline
Joined: Jul 20, 2004
Posts: 10
Location: Sweden
PostPosted: 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
View user's profile Visit poster's website ICQ Number
wi777
Newbie
Newbie

Offline Offline
Joined: Apr 20, 2004
Posts: 44
Location: Taiwan
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger
callidus
Newbie
Newbie

Offline Offline
Joined: Jul 20, 2004
Posts: 10
Location: Sweden
PostPosted: 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
View user's profile Visit poster's website ICQ Number
wi777
Newbie
Newbie

Offline Offline
Joined: Apr 20, 2004
Posts: 44
Location: Taiwan
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger
callidus
Newbie
Newbie

Offline Offline
Joined: Jul 20, 2004
Posts: 10
Location: Sweden
PostPosted: 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
View user's profile Visit poster's website ICQ Number
wi777
Newbie
Newbie

Offline Offline
Joined: Apr 20, 2004
Posts: 44
Location: Taiwan
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger
callidus
Newbie
Newbie

Offline Offline
Joined: Jul 20, 2004
Posts: 10
Location: Sweden
PostPosted: 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
View user's profile Visit poster's website ICQ Number
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  i18n - l10n (languages)
Page 1 of 2
All times are GMT
Go to page 1, 2  Next

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy