English 中文(简体)
如何在 JDeveloper 日志控制台显示 GREEK 字符
原标题:How to display GREEK Characters in JDeveloper s Logging Console

我使用JDeveloper 11.1.1.4.0, 我想在 < 坚固> 调试中显示希腊字符 : 集成 WebLogic 服务器 - 日志 控制台 。

当我尝试做一个系统.out. print 语句时, 希腊字符会显示为问答标记 。

我将首选项 & gt; 环境 & gt; 编码改为 UTF-8, 但运气不好 。

有人能帮忙吗?

最佳回答

我找到了解决问题的办法(至少我和JDev 12.1.2.0一起工作过,

在jdk.conf (JDEV_HOME/j Developers/ide/bin) 和重新启动 JDeveloper 中添加以下一行:

AddVMOption  -Dfile.encoding=UTF-8
问题回答

我想你需要为编译者设置 UTF-8 编码 。

在您的 “% 强” 项目属性 < / 强” 对话框中, 将“ 强” compiler < / 强” 转到“ 强”, 并设定所需的字符编码 。

@Ravinder Reddy的建议解决了:

Run -> Choose active Run config -> Manage Run Configurations...-> Manage ... Then in popup indicate a config and click on pencil icon to edit

然后在 java 选项中放入 < strong> - Dfile.encoding=UTF-8

And now they appear encoded correctly e.g. for a gear icon as a character:

String gear_= new String( "u2699".getBytes(),StandardCharsets.UTF_8); 
settingsButton = new JButton(gear_);




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签