Comments (1)
public static String decode(String unicode) {
StringBuilder str = new StringBuilder();
String[] hex = unicode.split("\\\\u");
for (int i = 1; i < hex.length; i++) {
int data = Integer.parseInt(hex[i], 16);
str.append((char) data);
}
return str.length() > 0 ? str.toString() : unicode;
}
from wbp4j.
Related Issues (13)
- 读取body乱码可能是因为gzip的原因 HOT 1
- 问一下拿到ImageInfo 怎么得到图片连接? HOT 1
- 关于在liunx上调用该组件报错问题 HOT 3
- com.github.echisan.wbp4j.exception.LoginFailedException: 登陆失败,无法获取cookie HOT 5
- 解决 cookies 第二次读取失败的 HOT 2
- 非常感谢 HOT 3
- (=・ω・=) 有哪位大佬用了的可以吱一声吗! HOT 3
- 首先谢谢作者,然后有个小问题, HOT 1
- 之前用的时候可以,现在都报ret=-4 HOT 3
- 这个图片上传到哪里了 HOT 1
- 求求你
- 还能用,只是InitUploadAttributesInterceptor的uploadUrl需要改为https://picupload.weibo.com/interface/pic_upload.php
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wbp4j.