srt is utf-8

This commit is contained in:
j 2016-02-23 18:03:07 +05:30
parent 328b3752fc
commit dd9892020c
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@
<script type="text/javascript" src="https://oxjs.org/min/Ox.js"></script> <script type="text/javascript" src="https://oxjs.org/min/Ox.js"></script>
<script type="text/javascript" src="js/player.js"></script> <script type="text/javascript" src="js/player.js"></script>
<script type="text/javascript" src="js/staticfuncs.js"></script> <script type="text/javascript" src="js/staticfuncs.js"></script>
<script type="text/javascript" src="js/classes.js"></script> <script type="text/javascript" src="js/classes.js?1"></script>
<script type="text/javascript" src="js/app.js"></script> <script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript" src="js/ox.extra.js"></script> <script type="text/javascript" src="js/ox.extra.js"></script>
<script type="text/javascript" src="js/dnd.js"></script> <script type="text/javascript" src="js/dnd.js"></script>

View file

@ -444,5 +444,5 @@ function loadSrt(file) {
reader.onload = function(data) { reader.onload = function(data) {
textArea.fromSrt(data.target.result); textArea.fromSrt(data.target.result);
}; };
reader.readAsBinaryString(file); reader.readAsText(file);
} }