Giter Site home page Giter Site logo

utf8bomremover's Introduction

BomSweeper

Remove BOM(Byte Order Marker) from UTF-8 files.

Wrote this because I had some legacy source codes of several Android projects in UTF-8 with BOM, but couldn't find any software to do batching BOM removing operations on MAC OS or Windows.

##Usage

bs.py [-h] [--type TYPE] path

    path: path of the target folder or file

    -h, --help: show this help message and exit

    --type TYPE: file type, if assign the file type, only this type's file will be converted.

###Examples

Convert all files under a folder:

    python bs.py /path/to/the/target/folder

Convert all java files under a folder:

    python bs.py /path/to/the/target/folder --type java

Convert single file:

    python bs.py /path/to/the/target/filename



Note: Thanks to this answer on stackoverflow: http://stackoverflow.com/a/8898439

utf8bomremover's People

Contributors

johnnyshieh avatar terencez127 avatar

Watchers

 avatar  avatar

Forkers

ronaldo-morillo

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.