Mule ESB中的输出编码问题 [英] Output Encoding issue in mule esb
本文介绍了Mule ESB中的输出编码问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我曾经使用Mule ESB中的转换消息"节点来创建XML.
I have used to do create XML using "Transform Message" Node in Mule ESB.
%dw 1.0 %output application/xml
%dw 1.0 %output application/xml
项目:{ 名称:有效负载."profile_name", id:有效负载."profile_Id" }
item: { name: payload."profile_name", id: payload."profile_Id" }
这显示输出xml的预览为
This shown a preview of output xml as
<?xml version='1.0' encoding='windows-1252'?>
<item>
<name>
<profile_name>????</profile_name>
</name>
<id>
<profile_Id>1</profile_Id>
</id>
</item>
这导致编码为"windows-1252",我如何在输出xml中将编码更改为"UTF-8"?
This resulted encoding as 'windows-1252' how can i change encoding as 'UTF-8' in my outpout xml ?
推荐答案
转到您的Anypoint Studio文件夹.
Go to your Anypoint Studio folder.
编辑AnypointStudio.ini
Edit AnypointStudio.ini
添加: -Dfile.encoding = UTF-8
Add: -Dfile.encoding=UTF-8
重新启动
这篇关于Mule ESB中的输出编码问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文