文章最后有最终版本下载。

前言,

之前一直使用老版本的jd-gui,最近想看看有没有更新,结果发现还真更新了。在github上找到了源码。

git地址:https://github.com/java-decompiler/jd-gui。

在window环境下使用中遇到了乱码问题。特此整理记录。

问题有两个:

一、从反编译代码的界面CTRL+C复制是如果选中内容包含中文,贴到其他编辑器时,中文丢失。

二、打开xml文件、properties文件等包含中文时。中文在反编译界面中显示乱码。用其他工具打开正常。

正文,

gradle 的使用不做讲解,请自行学习。

问题一:

更新插件即可,需要重新编译源码。

compile 'com.fifesoft:rsyntaxtextarea:3.0.4'升级到compile 'com.fifesoft:rsyntaxtextarea:3.1.1'。据说升级到3.0.5就解决此问题了。

问题二:

1.使用jd-gui-1.6.6.jar 反编译时出现乱码。增加运行参数。

java -D'file.encoding'=utf-8 -jar .\jd-gui-1.6.6.jar

2.使用jd-gui.exe出现乱码的。可以曲线救国。简单修改源码重新编译生成exe文件。原理也和使用jar包时加入运行参数一样。

打开源码中的/jd-gui/build.gradle文件增加红色部分。重新打包发布gradle build。

// Java executable wrapper for Windows //

launch4j {

createExe.dependsOn 'proguard'

jvmOptions = ['-Dfile.encoding=utf-8']//这行是新增的 version = textVersion = project.version

fileDescription = productName = 'JD-GUI'

errTitle 'JD-GUI Windows Wrapper'

copyright 'JD-GUI (C) 2008-2019 Emmanuel Dupuy'

icon projectDir.path + '/src/launch4j/resources/images/jd-gui.ico'

jar projectDir.path + '/' + proguard.outJarFiles[0]

bundledJrePath = '%JAVA_HOME%'

}

下载链接

链接:https://pan.baidu.com/s/1Z1dM6Te0yAZHkl3E3Nx32A

提取码:fzjs

中文       ↑

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

English ↓

Bottom Download.

Introduction,

I used to use the old version of JD GUI. I found the source code on GitHub.

git address:https://github.com/java-decompiler/jd-gui.

In the windows environment, we encounter the problem of garbled code.

There are two questions:

Q1.[Bug] Can not copy-pasted Non-ASCII characters #268 #303     https://github.com/java-decompiler/jd-gui/issues/268,https://github.com/bobbylight/RSyntaxTextArea/pull/303

Q2.In windows, the default JD GUI is GBK encoding                         https://github.com/java-decompiler/jd-gui/issues/129

Main Body,

how to use gradle ?  →  https://gradle.org/

Q1:

update rsyntaxtextarea and rebuild source。

update compile 'com.fifesoft:rsyntaxtextarea:3.0.4'  to  compile 'com.fifesoft:rsyntaxtextarea:3.0.5' or higher version and  i used 3.1.1。

Q2:

1.use   jd-gui-1.6.6.jar please add jvm args like this

java -D'file.encoding'=utf-8 -jar .\jd-gui-1.6.6.jar

2.use jd-gui.exe update /jd-gui/build.gradle, and rebuild . it work likes 1.

// Java executable wrapper for Windows //

launch4j {

createExe.dependsOn 'proguard'

jvmOptions = ['-Dfile.encoding=utf-8']//new row

version = textVersion = project.version

fileDescription = productName = 'JD-GUI'

errTitle 'JD-GUI Windows Wrapper'

copyright 'JD-GUI (C) 2008-2019 Emmanuel Dupuy'

icon projectDir.path + '/src/launch4j/resources/images/jd-gui.ico'

jar projectDir.path + '/' + proguard.outJarFiles[0]

bundledJrePath = '%JAVA_HOME%'

}

Download

address:https://pan.baidu.com/s/1Z1dM6Te0yAZHkl3E3Nx32A

passwd:fzjs

if can't download ,email me.

baishier.g@gmail.com

java decompiler 乱码_jd-gui-1.6.6 乱码问题整理(about jd-gui-1.6.6 garbled code.)相关推荐

  1. Java反编译器Java Decompiler

    Java Decompiler不仅为Windows.Linux.OSX系统提供GUI程序JD-GUI,而且还提供了Eclipse插件JD-Eclipse,官方网站:http://java.decomp ...

  2. Java反编译工具:Java Decompiler

    Java Decompiler项目旨在开发一套工具集,这套工具集可以反编译并分析Java5之后的Java字节码. 它主要包括四个部分. JD-Core:Java Decompiler的核心库,它能够根 ...

  3. java执行cmd命令,返回结果中文乱码问题解决

    java执行cmd命令,返回结果中文乱码问题解决 参考文章: (1)java执行cmd命令,返回结果中文乱码问题解决 (2)https://www.cnblogs.com/kwaitfort/p/90 ...

  4. java 反编译 手游_Java反编译器(DJ Java Decompiler)

    DJ Java Decompiler是一款强大易用的java反编译器,使用DJ Java Decompiler你可以反编译class文件并且可以保存为文本文件或其它格式,它可以从已经编译的二进制cla ...

  5. Java Decompiler(Java反编译工具)

    Java Decompiler官网地址:http://jd.benow.ca/ 官网介绍: The "Java Decompiler project" aims to develo ...

  6. 安装 java decompiler_Eclipse离线安装Java Decompiler插件(反编译)

    Java Decompiler是Java语言的反编译工具,具体介绍见博客Java Decompiler(Java反编译工具) 1.下载插件 Eclipe的Java Decompiler插件名为JD-E ...

  7. Eclipse离线安装Java Decompiler插件

    Java Decompiler是Java语言的反编译工具,具体介绍见博客Java Decompiler(Java反编译工具)或者是看官网介绍,官网地址为http://jd.benow.ca/ 1.下载 ...

  8. [Tools] JD-GUI(Java Decompiler)

    一款不错的java反编译器:http://java.decompiler.free.fr/,地址换了:http://jd.benow.ca/ 可以下载本地的版本和Eclipse版本 Eclipse配置 ...

  9. Java中url传递中文参数取值乱码的解决方法

    Java中url传递中文参数取值乱码的解决方法 参考文章: (1)Java中url传递中文参数取值乱码的解决方法 (2)https://www.cnblogs.com/liwenjuan/p/3211 ...

  10. Java反编译工具推荐 -- DJ Java Decompiler

    DJ Java Decompiler 是个反编译的工具,可以将编译过的 CLASS 文件编译还原成为 Java 原始文件,并且不需要额外安装 JVM(Java Virtual Machine)或是 J ...

最新文章

  1. 论文 | 图像和谐化公开数据集:让前景和背景更“般配”
  2. scipy.sparse.coo_matrix、csr_matrix、lil_matrix、dia_matrix
  3. 【前端】20款国外非常漂亮的优秀网站404错误页面HTML模板
  4. iOS - UIPageViewController
  5. gdb调试caffe工程
  6. sonar 不再支持 cobertura 插件(sonar支持的插件表)
  7. 基于地理区域的广告推送模块
  8. spoj 2798 Query on a tree again! 树链剖分
  9. linux中逻辑块大小为,Linux 文件系统相关的基本概念
  10. LeetCode:每日一题(2020.4.14)
  11. 古建筑测绘任重道远,三维实景建模是唯一突破口?
  12. Permission denied (publickey).../RPC failed; curl 92 HTTP/2 stream 0 was.../pack exceeds maximum all
  13. GS认证、VDE认证、CE认证简单介绍
  14. Android系列之butterknife基本用法
  15. [UOJ198][CTSC2016]时空旅行
  16. 如何进阶优秀数据分析师行列?方法、技术与工具,缺一不可!
  17. 修复 rk3288 android9 的一些问题
  18. 红黑树的节点颜色是什么决定_为什么选择颜色可能是您最重要的品牌决定
  19. ▶链路层第三弹◀ 两种信道下的数据链路层【下】广播通信CSMA/CD
  20. Blender 建模风扇(UV贴图、图像纹理、环境纹理、伽玛、Cycles渲染)

热门文章

  1. Linux-shell篇之while用法
  2. sublimetext text3比较两个文档的不同
  3. 如何在阿里云注册域名-阿里云域名注册与域名解析完整教程
  4. 利用netstat查看http为短连接还是长连接?
  5. 【macOS】重装mac系统手把手教学
  6. oracle loap函数用法
  7. 最小项标准式和卡诺图化简
  8. 【实战】还记得校内网么(人人网)?当年的同学都在哪?爬取一下就知道
  9. expdp —— XDB SGA initialization
  10. 达梦数据库update关联更新改造