如图,安装完Weblogic 12C R2(12.2.1)并启动后,Eclipse中控制台乱码:
![125653_5Pl2_1434710.png](http://static.oschina.net/uploads/space/2016/0119/125653_5Pl2_1434710.png?x-oss-process=image/resize,w_1400/format,webp)
解决办法:
在Weblogic安装目录下打开:
[C:\Oracle\Middleware\Oracle_Home]\user_projects\domains\[base_domain]\bin\setDomainEnv.cmd:
![130147_sRls_1434710.png](http://static.oschina.net/uploads/space/2016/0119/130147_sRls_1434710.png?x-oss-process=image/resize,w_1400/format,webp)
找到脚本中的最后一个set JAVA_OPTIONS=%JAVA_OPTIONS%(在倒数20~30行左右):
![130646_0vNX_1434710.png](http://static.oschina.net/uploads/space/2016/0119/130646_0vNX_1434710.png?x-oss-process=image/resize,w_1400/format,webp)
将其修改为(在这一行后面增加-Dfile.encoding=utf-8):
![130856_OzLo_1434710.png](http://static.oschina.net/uploads/space/2016/0119/130856_OzLo_1434710.png?x-oss-process=image/resize,w_1400/format,webp)
保存后,重启Weblogic:
![131317_Fat8_1434710.png](http://static.oschina.net/uploads/space/2016/0119/131317_Fat8_1434710.png?x-oss-process=image/resize,w_1400/format,webp)