Got it working for Twitter by forcing the encoding to UTF-8, and running JSON responses through JSON.parse
instead of whatever it did before.
It seems to have great provider support, but I’m getting Twitter’s unparsed HTML response (with that javascript tag), which is to be expected, actually. I’ll check how Mastodon does this—as it seems to only get the tweet content—sometime soon. Thanks for your help! :)