-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error encoding JS files with UTF-8 encoding #4
Comments
Hi @Catmacey. Firstly, I haven't looked at this project for so long, the code looks totally alien to me, too, as I haven't worked with CFML for 4+ years! So I'm very sorry to say I can't support this project any more. However, I do have a couple of suggestions:
|
Hi Joe, I thought it was a longshot to ask you for help. I could see that the project hadn't had much activity for a while. I've tried isolating all I can and dumping the output at various stages but ultimatly I think it comes down to JSMin java. Thanks for the response and also for the tips. Best regards Matt Casey -----Original Message----- Hi @Catmacey https://github.com/Catmacey . Firstly, I haven't looked at this project for so long, the code looks totally alien to me, too, as I haven't worked with CFML for 4+ years! So I'm very sorry to say I can't support this project any more. However, I do have a couple of suggestions:
— |
Hi Matt. The JSmin source is available here https://github.com/zefer/Combine/blob/master/com/magnoliabox/jsmin/JSMin.java - so you could isolate it further by picking the classes it uses, if you wanted. JSMin itself is a really old and unsupported project anyway, so personally, I wouldn't bother. I do all my asset compilation at build time now. There are lots of modern tools that help you do this, and are far superior to Combine in my opinion. |
Hi Joe, Yes like you we do minification/etc using other tools but this particular Thanks again for the help. Regards Matt Casey On 11 June 2013 15:07, Joe Roberts [email protected] wrote:
|
Hi, I am having problems when trying to minify JS files that contain UTF-8 using JSMin from your combine.jar.
I've created a standalone version of your compressJsWithJSMin() method rather than the whole combine.cfc.
As a simple test I have the string "This is a test Франция" which results in the output "This is a test $@0=F8O"
I've tried setting a Charset string on the output toString() method but it makes no difference.
I realise that this isn't strictly an issue with your combine package but I hope you can forgive me for asking for help here.
I have a simple standalone example that demonstrates the issue;
The text was updated successfully, but these errors were encountered: