-1

Related question: Mass-upload many text files to MediaWiki

I used shell script and ImportTextFile.php as Ilmari Karonen told me.

But the result is a broken page like

��{�{�m�i�r�a�c�l�e� � �|� �m�a�z�i�n�g�a��m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e��c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a��m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e��c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a��m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e��c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a��m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e��c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a��m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e��c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a��m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e��c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a��m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e��c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a��m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e��c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a��m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e��c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a��m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e��c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a��m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e��c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a��m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e��c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|�

The actual content goes like

{{miracle
| mazinga_miracle = 1
| apple_computer = jobs
| mazinga_miracle = 1
| apple_computer = jobs
| mazinga_miracle = 1
| apple_computer = jobs
| mazinga_miracle = 1
| apple_computer = jobs
| mazinga_miracle = 1
| apple_computer = jobs
| mazinga_miracle = 1

So the program inserts "�" for every bit of string.

What's the problem?

Ah! I got the answer. After I change this to UTF-8, no problem! :)

Community
  • 1
  • 1
user1849133
  • 527
  • 1
  • 7
  • 18

1 Answers1

2

Ah! I got the answer. After I change this to UTF-8, no problem! :)

user1849133
  • 527
  • 1
  • 7
  • 18
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient [reputation](http://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](http://stackoverflow.com/help/privileges/comment). – Tala Aug 15 '13 at 06:41
  • 1
    @Anatoliy_Nikolaev ?? Perhaps you're confused a bit? This finding (that the problem of broken page from mediawiki upload using importtextfile.php can be fixed by changing the file to utf-8) is from "me". Perhaps many people already know this. But anyhow I found this solution by myself. So there's no answer that I can "vote up". – user1849133 Aug 15 '13 at 06:57
  • 1
    @Tala Why do you think this doesn't provide an answer? This solution is simple and short, but it indeed solves the problem. I thought posting this solution could help many complete novices like me. – user1849133 Aug 15 '13 at 07:02