I'm using Perl to grab data from a SQLite database and the WWW:Mechanize module to do some web scraping.
The data (in the database) I'm posting has some ™
characters in it, and after looking at the text on the website it has a couple odd characters: â¢
, instead of the ™
.
I have set the following at the top of my Perl program. I used this to prevent a warning in the terminal about "wide characters".
binmode(STDOUT, ":utf-8");
I don't really know much about encoding / decoding characters so any help would be useful.
Edit: After reading about Perl IO, I was able to find this stackoverflow answer which solved my problem.