At the last word of chinese characters pligg cannot correctly display the word.
See attached pictures, please remove this bug(the small squares).
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Chinese word cut problem |
| ||||
|
could you post some chinese text on the forum, so i can just copy them and test. It might be some string functions that aren't aware of those characters.
__________________ Anatomy of the Pligg template Help needed |
| |||
| Quote:
汇聚&分享网络精彩影音资源&互动交友社区 雷区-迅雷雷区-雷区资源-免费下载——尽在www.leiqu.com!雷区是集网络资源交流和社区交友为一体的具有Web2.0特征的社区。 雷区尊重多元化文化、鼓励营造学习型的团队,我们致力于充分发挥个人的潜能、努力为员工提供最佳培训机会。 我们欢迎有创业精神的计算机专业优秀的人才加入我们。 *雷区论坛在升级AnyMedia播放器时由于操作失当导致数据库崩溃,现由专业人员努力恢复中,请广大雷 区积极参与到雷友集体博客的写作中来。 |
| |||
|
Any progress to solve this problem?
|
| ||||
|
here's what i have found out. if you try and change the link status(admin) you will see the chinese characters properly without any weird symbols. which means the database is ok. now i will need to hunt which function is causing the weird characters. link.php : fill_smarty function $title_short = htmlspecialchars(wordwrap($this->title, 30, " ", 1)); this line is breaking the title. the wordwrap is the culprit.
__________________ Anatomy of the Pligg template Help needed Last edited by savant; 12-18-2006 at 04:50 AM.. |
| ||||
|
next bit was to the get the links working. Whenever i clicked on the title it would load an empty page. To fix that problem i had to put an urlencode function on the url. link.php > fill_smarty() PHP Code: same can be done to fix the breadcrumbs Now the weird symbols in the summary is caused by substr here PHP Code: Before i commit anything i would like people to post more text like viegent to verify it works. thanks Now about the tags, the chinese character isn't displayed poperly because of the use strlower. This was fixed using utf8_strlower(). in the tag cloud, urlencode did the trick.
__________________ Anatomy of the Pligg template Help needed Last edited by savant; 12-18-2006 at 07:30 AM.. |
| The Following 3 Users Say Thank You to savant For This Useful Post: | ||
| ||||
|
__________________ Anatomy of the Pligg template Help needed |
| ||||
|
thx for do those compatible work, it's very useful.
|
| |||
|
Thanks savant I just know a littlle about code and I cannot understand all the modification above. As I know my pligg version has changed $title_short = htmlspecialchars(wordwrap($this->title, 30, " ", 1)); to $title_short =$this->title Please instruct me how to change new code. |
| ||||
|
hey 1. Story.php Replace (line 81) PHP Code: PHP Code: Replace (line 12) PHP Code: PHP Code: PHP Code: PHP Code: Replace line 371 PHP Code: PHP Code: Replace line 386 PHP Code: PHP Code: PHP Code: PHP Code: Replace line 89 PHP Code: PHP Code: PHP Code: PHP Code: utf8.zip 6. config.php Add PHP Code: PHP Code: thanks
__________________ Anatomy of the Pligg template Help needed Last edited by savant; 12-19-2006 at 06:50 AM.. |
| The Following 3 Users Say Thank You to savant For This Useful Post: | ||
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 中文乱码 problem with rss title and templates in chinese | jackpu | General Help | 5 | 08-15-2008 05:22 AM |
| HELP: Chinese display problem | wanderingcat | General Help | 3 | 07-18-2007 11:49 PM |
| a serious problem about databackup for Pligg Chinese Version | KaneYoung | Bug Report | 1 | 07-18-2007 02:09 PM |
| Duplicate URLs Utf-8 Chinese categories problem in Pligg beta 9 build 693 | tiwe | Bug Report | 2 | 02-10-2007 09:59 PM |
| Problem form doesn't work! | nabil | Bug Report | 1 | 04-01-2006 08:53 PM |






Linear Mode

