binarywang / java-emoji-converter Goto Github PK
View Code? Open in Web Editor NEWEmoji转换工具,便于各种类型的客户端生成的Emoji字符串转换成另外一种格式
Emoji转换工具,便于各种类型的客户端生成的Emoji字符串转换成另外一种格式
当获取raw.githubusercontent.com上的配置文件出现非MalformedURLException异常时,导致加载不了本地配置文件,建议捕获所有Exception
CVE-2020-26259
XStream是一个简单的Java库,可完成Java对象到XML的相互转换。XStream官方发布安全更新,修复了 CVE-2020-26259 任意文件删除漏洞。攻击者可构造恶意的XML文档,删除主机上存在的文件。
报错内容:
Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: com.thoughtworks.xstream.XStream.setupDefaultSecurity(Lcom/thoughtworks/xstream/XStream;)V
初始化耗时太久,更新表情库也方便
Mac系统 自带输入法的🟰转换失败,可能它不是个emoji?
toAlias方法入参 : (350-300)✖️6➗2🟰150
输出: (350-300):heavy_multiplication_x:️6:heavy_division_sign:2🟰150
比如这两个表情🧠🤮
如题,输入一些新的表情,还是不能解析的
com.thoughtworks.xstream.security.ForbiddenClassException: com.github.binarywang.java.emoji.model.Emoji4Unicode
at com.thoughtworks.xstream.security.NoTypePermission.allows(NoTypePermission.java:26)
at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:74)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)
at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)
at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1391)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1376)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1327)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1281)
at com.github.binarywang.java.emoji.EmojiReader.read(EmojiReader.java:53)
at com.github.binarywang.java.emoji.EmojiReader.getSb2UnicodeMap(EmojiReader.java:81)
at com.github.binarywang.java.emoji.EmojiConverter.sb2Unicode(EmojiConverter.java:49)
at com.github.binarywang.java.emoji.EmojiConverter.toAlias(EmojiConverter.java:32)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.