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 Previous  1, 2
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  i18n - l10n (languages)

Topic Archived View previous topic :: View next topic  
Author Message
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Oct 14, 2004 3:34 pm
Post subject: Re: Message unreadable

I get the same problem ONLY if I'm browsing my site in english and saving a message as italian... but if I'm browsing my site in italian language I had not problems with accented letters (((I think becouse english does'nt have accented letters so will be loaded as ANSI instead of UTF-8 so no special charts decoding will be done while saving into the database, hope I'm not wrong)))

Sorry for posting 4 mounts after the last post but may be this will help someone without the need of modify the code ... cheers

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
dukeyork
Newbie
Newbie

Offline Offline
Joined: Jul 09, 2004
Posts: 31

PostPosted: Tue Oct 26, 2004 3:30 am
Post subject: Re: Message unreadable

I have the same problem on my site (Chinese) and find the same solution before I browse this forum.

I did an extensive search of the whole package and find utf8_encode is used only in 7 places:

1. mainfile.php(462): themecenterbox($title, utf8_encode($content));

2. mainfile.php(464): themesidebox($title, utf8_encode($content), $bid);

3. mainfile.php(830): return utf8_encode($datetime);

4. mainfile.php(966): $title2 = utf8_encode($title2);

5. includes\messagebox.php(36): $title = utf8_encode($title);

6. includes\messagebox.php(39): $content = utf8_encode($content);

7. modules\Your_Account\index.php(401): echo "<center><b>"._HEADLINESFROM." <a href=\"http://$siteurl[0]\" target=\"new\">".utf8_encode($title)."</a></b></center><br />".utf8_encode($content)."";
Found 7 occurrence(s) in 4 file(s)

This is definitely something wrong, because there are far more places handling text throughout the system. News, Articles, Stories every other places are handling utf-8 text well without the use of this function. Also, the first occurance in mainfile (see above) converts $content but not $title makes the mistake more obvious.

I am going to remove all the utf8_encode function call in my site. However, I wonder why nobody form cpgnuke team stand out to say something officially to confirm this is the right approach and commit to fix the problem in later release, even this problem has been hanging for months

Can I expect some reply "officially"

Thanks


dukeyork's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
PHP 5.0.4 / MySQL 4.0.7
Back to top
View user's profile
Śyama_Dāsa
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 2048
Location: Dragonfly CMS Tribe
PostPosted: Tue Oct 26, 2004 4:00 am
Post subject: Re: Message unreadable

Yes remove each call, this has been fixed in cvs for the upcoming release

_________________
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
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  i18n - l10n (languages)
Page 2 of 2
All times are GMT
Go to page Previous  1, 2

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