hi, it's not an issue about how I output the string.
The problem is the steal build system totally discriminate against Chinese character. see the tiny sample code below.
I have removed the canjs and its templates
index.html
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Evil String</title>
- </head>
- <body>
- <h1>Evil String<h2>
- <script src="../../steal/steal.js?demo/evilString/evil.js"></script>
- </body>
- </html>
- steal(function(){
- var output = ":";
- console.log(output);
- });
- Building to demo/evilString/
- opening demo/evilString/index.html
- could not load script file:///E:/temp_move/emanual2/public/demo/evilString/evil.js
- InternalError: Compilation produced 3 syntax errors.
- !!!!!!!!!!! ERROR !!!!!!!!!!!
- -message = Compilation produced 3 syntax errors.
- -fileName = file:///E:/temp_move/emanual2/public/demo/evilString/evil.js
- -name = InternalError
- -lineNumber = 0
- adding dependencies
- + stealconfig.js
- + demo/evilString/evil.js
- no packages
- Building demo/evilString/production.js
- 82
- ERROR in demo/evilString/evil.js at line 2: ERROR - Parse error. unterminated string literal
- steal(function(){
- var output = "锛?;
- console.log(output);