On Monday 14 June 2004 09:20, Brion Vibber wrote:
I've started on a conversion script which might be
able to bring the
site back online before all the grunt work is done, with appropriate
locking of the incomplete pages. We'll see how it turns out... Obviously
this is something I'll want to test first. :D
Couldn't the database be converted online? I am thinking about a script which
would be doing something like this:
for cur_id=1 to x
Protect page cur_id
Convert page cur_id and its edit history to UTF-8
Write cur_id to "ConversionStatus.php"
Unprotect page cur_id
next
and then, I'm not sure where, probably in Article.php, $wgOutputEncoding could
be set to UTF-8 if cur_id of the displayed article < one in
ConversionStatus.php and left ISO-8859-1 if it's not.
(Of course, the script would have to check if the article was already
protected and not unprotect it in that case but I didn't want to complicate
the pseudocode.)