[08:50:52] lo, one particular page in my wiki giving me "preg_match_all error 4: Malformed UTF-8 characters, possibly incorrectly encoded" [08:51:16] i'm assuming that means there's some noise in that page, but how to fix that? [08:51:26] and why does it complain? [08:55:27] OT, not mediawiki but wikimedia, but can anyone point me on how to change the language in which I receive e.g. voting announcement e-mails? I keep receiving these in pt-BR, and I'd like to set that to English. Or is this something that'll depend on the first wiki that meets eligibility criteria? [08:58:36] (maybe I really ought to try to get in touch with some wikimedia people about this, given the e-mail also manages to include HTML code in text/plain...) [10:12:17] njsg: #wikimedia-tech [10:12:57] tuxick: does it complain if you copy paste that page contents into a sandbox page and click save [10:35:31] i can't see the page :) [10:35:41] that's my problem [10:37:38] in fact i'm a bit surprised that error stuff shows with display_errors = 0 [10:38:36] tuxick: click history tab? [10:39:43] good idea but alas [10:47:38] tuxick: completely blank page? [10:54:23] tuxick: https://www.mediawiki.org/wiki/Special:ApiSandbox#action=parse&format=json&page=Main%20Page&prop=displaytitle%7Cproperties%7Cwikitext&formatversion=2 [10:54:51] tuxick: do you have such special page on your wiki. you can use it to get source of any wiki page. [10:55:26] tuxick: then paste the bad page source into a new page. see whether the same issue will appear there also for that other test page. [10:57:10] " [10:57:20] API sandbox" would be the special page? in that case no, don't have that [11:00:17] oh haha [11:00:21] i do [11:01:48] cool :-) [11:07:09] not easy to find out how to use that to find a page if you don't know api/internals [11:07:26] diving into database seems easier to me [11:46:26] tuxick: it isn't when you realize there's no direct relation between revision id and text id [11:50:40] yeah, db isn't as flat as i expected :) [11:52:18] anyway, index.php?title=Lxc&action=raw shows me a funky character [11:52:28] no thanks to API :) [11:54:38] so next question is: how to edit a page it's refusing to show [11:55:22] stupid question, nevermind [11:55:46] &action=edit :) [11:56:05] thanks for the rubber duck [20:48:10] tuxick: haha yay, what character was it? [20:55:51] ugh, pasted it at work [20:56:12] can't remember [20:57:19] kinda funny how it was refusing to show the page, but action=edit didn't complain [21:00:18] Well, it wasn't parsing it ;) [21:31:57] huh, there is really no hook to get newly inserted log entries? [21:32:22] I see onManualLogEntryBeforePublish() but it looks like it only covers log entries that go to recentchanges [21:36:19] and also doesn't apply to restricted logs [22:18:03] And also i guess there is no equivalent to ArticleRevisionVisibilitySetHook for log items?