Giter VIP home page Giter VIP logo

Comments (3)

Phally avatar Phally commented on May 13, 2024

I think the BOM was (is) in your own source file. You can also fix this by converting your source file to UTF-8 without BOM. Not sure if TextMate has that option (i am not using that). I don't think this is a bug in AssetCompress.

from asset_compress.

markstory avatar markstory commented on May 13, 2024

AssetCompress doesn't add BOM to any files. It just processes what is there. And if various compressors all end up with the marks being there, perhaps they are in the file?

from asset_compress.

jonaldinger avatar jonaldinger commented on May 13, 2024

The BOM is not visible in my source file, and does not show up in any of my uncompressed files when viewing in the browser, but as you both mentioned the file encoding is likely set to UTF-8 with BOM. I had tried converting to UTF-8 without BOM in TextMate, but couldn't find the option. I figured at a minimum, if somebody else has this issue they will at least be able to find this discussion; if you think it's appropriate, I could add a note about the BOM in the Wiki for future unsuspecting users. Thanks for the quick feedback!

P.S. after some further research, it seems as though Visual Studio likes to create UTF-8 with BOM. I had grabbed my reset CSS file from a recent .NET project, so that's likely how the encoding got set in the first place.

from asset_compress.

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.