[note] php XML issue

Dedicated for Linux & related opensource software

[note] php XML issue

文章 #1  未閱讀文章PoP » 2007-06-04 03:56

This forum works fine in php5, with exception of news input module, which works in php4.

The problem is XML support differs with php5.
最後由 PoP 於 2007-06-24 12:02 編輯,總共編輯了 1 次。
頭像
PoP
 
文章: 13617
註冊時間: 2006-12-06 03:42

文章 #2  未閱讀文章PoP » 2007-06-07 19:41

Seems php5 XMLpraser does the big5 conversion now.
Disable iconv in News input mod seems OK.

Don't have time checking XMLpraser, but code now works :P
頭像
PoP
 
文章: 13617
註冊時間: 2006-12-06 03:42

文章 #3  未閱讀文章PoP » 2007-06-11 00:30

Still got minor XML praser error for the buggy big5 encoding(should be big5-hkscs) of RTHK feed, may be Yahoo feed too.

Sometime get passed, but sometimes not.
It's time to look for update code for the newsfeed input mods.
頭像
PoP
 
文章: 13617
註冊時間: 2006-12-06 03:42

文章 #4  未閱讀文章PoP » 2007-06-11 23:53

Many news lost, switch back to php4 now.
頭像
PoP
 
文章: 13617
註冊時間: 2006-12-06 03:42

文章 #5  未閱讀文章PoP » 2007-06-24 12:04

Code changed to parser code, switched to php5 now.

* RTHK feed still having problem, should be XML declare big5 encoding but actually big5-hkscs.
頭像
PoP
 
文章: 13617
註冊時間: 2006-12-06 03:42

文章 #6  未閱讀文章PoP » 2007-07-20 02:21

Found code use mb_convert_encoding.

Modify xml parser code last night, found that this doesn't support big5-hkscs, but big5 is OK.
頭像
PoP
 
文章: 13617
註冊時間: 2006-12-06 03:42

文章 #7  未閱讀文章PoP » 2007-07-20 02:59

Test code with iconv, supports big5-hkscs =D>

rss parser code now using iconv() for not supported encodings.
頭像
PoP
 
文章: 13617
註冊時間: 2006-12-06 03:42


回到 Linux

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客

cron