Skip to content

Commit

Permalink
Fix #11: Add UTF-8 support to handle missions with non-ASCII characters
Browse files Browse the repository at this point in the history
  • Loading branch information
jboecker committed Mar 5, 2014
1 parent 38163ca commit a5aaf2b
Show file tree
Hide file tree
Showing 4 changed files with 673 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ subdirectories. They include:
* proj4js (github.com/proj4js/proj4js, MIT)
* spark-md5 (github.com/satazor/SparkMD5, WTFPL)
* zip.js (github.com/gildas-lormeau/zip.js, BSD)
* StringView ([see developer.mozilla.org](https://developer.mozilla.org/en-US/Add-ons/Code_snippets/StringView), GPLv3)
1 change: 1 addition & 0 deletions admintool.html
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,7 @@ <h2 id="filename-h2"></h2>
<script src="vendors/weblua/build/weblua-0.1.5.js"></script>
<script src="vendors/jquery/dist/jquery.min.js"></script>
<script src="vendors/spark-md5/spark-md5.min.js"></script>
<script src="vendors/stringview/stringview.js"></script>

<script src="js/luautil.js"></script>
<script src="js/admintool.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion js/luautil.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Lua.set_lua_string_to_js(function(arr) { return (new StringView(arr)).toString(); });

function load_table_show() {
Lua.exec('\n\
Expand Down Expand Up @@ -71,4 +72,4 @@ function table.show(t, name, indent)\n\
return cart .. autoref\n\
end\n\
');
}
}
Loading

0 comments on commit a5aaf2b

Please sign in to comment.