[Yesod][hjsmin] Could not handle UTF-8 literal in julius file?

Hi I write julius file like this. (snip) var fs = $('<fieldset><legend>Recent Changes</legend></fieldset>'), ul = $('<ul/>'); $('#recent-changes').append(fs.append(ul)); (snip) This works good. But,... (snip) var fs = $('<fieldset><legend>最近の更新</legend></fieldset>'), // Japanese UTF-8 ul = $('<ul/>'); $('#recent-changes').append(fs.append(ul)); (snip) This script(with UTF-8) transform legend text to unreadable string. Then, I try to insert "debugger;" statement in order to disable to hjsmin, This try is success and make readable. Could you confirm this?

Then, I try to insert "debugger;" statement in order to disable to hjsmin,
Um? This is not a specification, is this? At that time, there was a julius file which does not minified in static/tmp. but now, I could not reproduce... because I have used this method sometime, I thought when they are.

I success to reproduce an julius file to that unminified js file which replaced %variable% correctly. - default-layout.julius -- original julius file - Mn3Igh0t.js : insert "debugger;" statement and does not minified. This work good, display japanese literal. - lBjsiRLN.js : no "debugger;" statement and minified. This works bad. display unreadable.

2011/1/28 いとうかつとし
I success to reproduce an julius file to that unminified js file which replaced %variable% correctly. - default-layout.julius -- original julius file - Mn3Igh0t.js : insert "debugger;" statement and does not minified. This work good, display japanese literal. - lBjsiRLN.js : no "debugger;" statement and minified. This works bad. display unreadable.
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
I can confirm that this bug exists, including the most recent version of hjsmin. For now, I recommend disabling the calls to hjsmin, and waiting until you hear that the bug is fixed. Thanks for reporting this. Michael
participants (2)
-
Michael Snoyman
-
いとうかつとし