Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

langjun langjun

I may be slow to respond.
Block or report user

Report or block langjun

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .eslintrc
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"mocha": true
"rules": {
// Disable for __DEV__, __SERVER__ usage.
langjun /
Last active Jun 22, 2016
Java IOS8859-1编码字符串转utf8格式
public class Main {
public static void main(String args[]) {
String tmp = "\346\212\261\346\255\211\357\274\214\346\240\271\346\215\256\347\233\270\345\205\263\346\263\225\345\276\213\346\263\225\350\247\204\345\222\214\346\224\277\347\255\226\357\274\214\346\234\254\345\220\247\346\232\202\344\270\215\345\274\200\346\224\276\357\274\214\345\216\273\347\234\213\347\234\213\345\205\266\344\273\226\350\264\264\345\220\247";
try {
System.out.println(new String(tmp.getBytes("ISO8859-1"),"utf-8"));
}catch(Exception e) {
You can’t perform that action at this time.