As a Portuguese I had problems with subtitles encoding, with some research I find a solution (all credits to Amit Bh)
All we have to do is clone the popcorn repo, edit one file and make a build.
Step 1:
git clone https://git.popcorntime.io/stash/scm/pt/popcorn-app.git
Step 2:
Edit src/app/lib/subtitle/generic.js and replace this line:
fs.writeFile(vtt, captions.vtt.generate(captions.srt.toJSON(data)), encoding, function (err)...
with this:
fs.writeFile(vtt, captions.vtt.generate(captions.srt.toJSON(data)), 'utf8', function (err) ...
Step 3:
To make a build with this fix just run: ./make_popcorn.sh
Step 4:
If all went well you’ll be able to run Popcorn:
./build/releases/Popcorn-Time/linux64/Popcorn-Time
I’m also providing a build with this fix already made, enjoy 🙂
Popcorn-Time(0.3.5-3)_patched
Note that this is only for linux, if someone is interested in a windows executable please contact me.