Git Product home page Git Product logo

gbk2utf8's Introduction

gbk2utf8

功能介绍

之前开发的很多eclipse项目源码设置的是ANSI,即随系统编码,默认GBK编码。那么现在开发的项目源码都是UTF-8编码。很多工具打开都会出现乱码的情况。文件众多,于是开发这个项目,实现gbk文件批量转换为utf-8编码。

在网上找了一些资料,开发语言很多,这里分别用到的三种语言:Python、java、php来实现。

使用

  1. 配置项目文件夹 python:pip install os, chardet, codecs

  2. 执行

java执行 java —jar gbk2utf8.jar,或者 eclipse/idea 右键run即可;

php执行 php convert.php;

python执行 python convert.py即可。

进度

2017-12-17 python部分完成,对项目所有非utf-8编码的java文件全部转为utf-8编码。

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.