encoding issue when running Stratego code in Spoofax, does not occur when compiling outside of Eclipse (but with the same compiler jar)

<script>
   $.noConflict();
   jQuery(document).ready(function($) {
   $(window).load(function() {
   ...    
</script>

pretty-printed in generated code in Spoofax:

out.print("$.noConflict();\n√Ω √Ω √Ω √ΩjQuery(document).ready(function($) {\n√Ω √Ω √Ω √Ω √Ω √Ω$(window).load(function() {\n√Ω √Ω √Ω √Ω √Ω √Ω √Ω √Ω

pretty-printed in generated code in Stratego:

out.print("$.noConflict();\n       jQuery(document).ready(function($) {\n           $(window).load(function() {\n               

link to relevant SDF syntax fragment:

https://svn.strategoxt.org/repos/WebDSL/webdsls/trunk/src/org/webdsl/dsl/syntax/WebDSL-JavaScript.sdf

While pasting the WebDSL fragment inside this issue I noticed the spaces are also not recognized by the WikiText renderer, which could indicate the cause, however, the inconsistency between Stratego and Spoofax should probably not happen, and the conversion to √Ω could indicate an incorrect encoding interpretation.

Actual fragment with weird spaces (breaking the formatting):

<script>
   $.noConflict();

       jQuery(document).ready(function($) {
           $(window).load(function() {
               $(‘#slider’).nivoSlider({

file attached

Submitted by Danny Groenewegen on 16 February 2012 at 17:56
tc.app16 February 2012 at 18:00

On 16 February 2012 at 22:37 Danny Groenewegen commented:

finding invalid characters: right-click file, go to properties and set text file encoding to UTF-8 explicitly

Log in to post comments