Closed cooljeanius closed 9 years ago
I've noticed this too, and have been meaning to fix it.
FYI here is another example of this happening:
Not sure if this is the same issue. I created a ranges entry with a name that contained the ampersand character and the resulting tweets had the ampersand encoded as "&".
"ranges": {
"AT&T Public WiFi (Carnival Corp)": [
"12.xxx.xxx.xxx"
]
}
Here's the resulting tweet:
I corrected my problem by changing the template
config tag to use the triple mustache to render unescaped HTML, here what my template
looks like:
"template": "{{{page}}} Wikipedia article edited anonymously from {{{name}}} {{&url}}"
Changing the page
identifier to use the triple mustache should correct the original problem reported.
Here's the resulting tweet:
A similar issue exists for apostrophees where the tweet about John-Joe O'Toole becomes
John-Joe O'Toole Wikipedia article edited anonymously from [GB] Newsquest Media Group Ltd http://t.co/rHyOv4vMuo
— The fifth estate (@MediaCreepEdit) 21 augusti 2014
Another example where page title looks "L'Ora" instead of "L'Ora" https://twitter.com/ItaGovEdits/status/517256445742821376
Articolo Wikipedia 'L'Ora' modificato anonimamente da Senato della Repubblica http://it.wikipedia.org/w/index.php?diff=68427526&oldid=67690486&rcid=82902613
I believe this is fixed now, if you update the templates in your config files to use triple braces. E.g.
"template": "{{{page}}} Wikipedia article edited anonymously from {{{name}}} {{&url}}",
instead of:
"template": "{{page}} Wikipedia article edited anonymously from {{name}} {{&url}}",
Thanks @lokal-profil
Credit goes to @HeatfanJohn who figured it out
For example, in this tweet: https://twitter.com/congressedits/status/496684262142537728 The "
/
" in the original article title somehow got turned into a "/
" in the tweet, which twitter treats as a hashtag. I assume this has something to do with character set encoding conversion issues...