Added Refine.defaultEncoding to Javascript of index.vt and project.vt, for debugging.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2393 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2011-11-30 07:22:08 +00:00
parent d419f4bbc7
commit 4a8145d624
3 changed files with 3 additions and 2 deletions

View File

@ -612,6 +612,7 @@ function process(path, request, response) {
}
context.encodingJson = butterfly.toJSONString(encodings);
context.defaultEncoding = butterfly.toJSONString(Packages.java.nio.charset.Charset.defaultCharset().name());
}
send(request, response, path + ".vt", context);

View File

@ -40,7 +40,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<script type="text/javascript" src="wirings.js"></script>
$scriptInjection
$styleInjection
<script>Refine.encodings = $encodingJson;</script>
<script>Refine.encodings = $encodingJson; Refine.defaultEncoding = $defaultEncoding;</script>
</head>
<body>
<div id="header">

View File

@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<link rel="icon" type="image/png" href="images/favicon.png">
$scriptInjection
$styleInjection
<script>Refine.encodings = $encodingJson;</script>
<script>Refine.encodings = $encodingJson; Refine.defaultEncoding = $defaultEncoding;</script>
</head>
<body>
<div id="header">