Code Monkey home page Code Monkey logo

Comments (4)

brendandc avatar brendandc commented on May 25, 2024

With the recent resolution of #47, which was causing encoding to fail with UTF-8 chars, I just ran into the same problem with utf8 characters getting replaced by question marks in the minified javascript.

Uglifier 2.3.1 Rails 4.0.1
also using rake assets:precompile
Doing the precompile locally on my Windows 7 machine, did not confirm on anything else.

from uglifier.

mrbrdo avatar mrbrdo commented on May 25, 2024

Well I can confirm it is 100% a locale-related issue for me. For example, I tried setting up the locale that was being forwarded through SSH to my server, and after that the problems went away. But I think uglifier should not depend on these settings.

I must note that yui-compressor does actually exhibit a similar problem. In the case I was trying at first, yui-compressor had no problems (while uglifier did), but I later came across the same problem with a different project, and yui-compressor couldn't handle it either.

from uglifier.

janusch avatar janusch commented on May 25, 2024

Hey,
i think i have a similar issue caused by uglifier.
In production the app does not run on IE9 due to an invalid character, this is probably caused by uglifier. How did you work around this? Is it possible to limit the charset uglifier is using?

from uglifier.

lautis avatar lautis commented on May 25, 2024

Uglifier has ascii_only output option, but it is set to true by default since 2.5.0. If you run into invalid output, it might be worth checking if UglifyJS produces similar output.

from uglifier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.