|
|
| |
Forums ⇒ Languages and alternative language support ⇒ i18n - l10n (languages) :: Archives ⇒ Message unreadable :: Archived
Message unreadable :: ArchivedWant 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
| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: 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 |
|
 |
dukeyork Newbie


Offline Joined: Jul 09, 2004 Posts: 31
|
Posted: 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 |
|
 |
Śyama_Dāsa Developer


Offline Joined: Apr 19, 2004 Posts: 2048 Location: Dragonfly CMS Tribe
|
Posted: 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 |
|
 |
|
|
|
| |
 |
 Welcome Anonymous
|
|
|
|