Hi,
I setup a Zh-wiki .
And now I have tried to use '$wgTitle = Title::newFromText( "MyArticle"
);
$wgArticle = new Article( $wgTitle );
$wgArticle->insertNewArticle( "$text", '', false, false ); //$text
contains the rawText fo the new articl'
to add a article to local wiki.But wiki can't recognize the Chinese.The
display of this articl are garbled.
Can you tell me why is there such a problem?
Thanks a lot.
vanessa lee
李琴 wrote:
Hi,
I have already got the article data from the wikipedia and I stored
it
on my computer .Now I want to add the article to the
local wiki. I have
done a lot of reaserches and I know that there are a lot of things to do.
If add a record to the page table ,then the
revision,recentchange,text,pagelink table and so on will be changed.So I
think maybe there is a easy way to do that .
Can you tell me what should I do ? Should I simply use
'insert,update,select...'words?
Sincerely looking froward you help, thanks
vanessa lee
If you're working inside mediawiki php.
$wgTitle = Title::newFromText( "MyArticle" );
$wgArticle = new Article( $wgTitle );
$wgArticle->insertNewArticle( "Some text", '', false, false );
If you don't want to work with php, use maintenance/importTextFile.php
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l