有没有办法更改 Biztalk 接收管道中的编码?

发布于 2024-12-05 21:50:46 字数 74 浏览 2 评论 0原文

我有一个接收管道,在反汇编阶段只有一个平面文件反汇编程序, 但我需要更改编码。传入的文件不是 utf-8,但输出时应该是 utf-8。

I have a receive pipeline with only a flat file dissambler in the dissamble stage,
but I need to change the encoding. The incoming file isn't utf-8 but it should be when it comes out.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

走走停停 2024-12-12 21:50:46

请参阅 Tomas Restrepo 的修复消息编码自定义管道组件:

https:// github.com/tomasr/fixencoding/tree/master/Winterdom.BizTalk.Samples.FixEncoding

See Tomas Restrepo's Fix Message Encoding Custom Pipeline Component here:

https://github.com/tomasr/fixencoding/tree/master/Winterdom.BizTalk.Samples.FixEncoding

夏末的微笑 2024-12-12 21:50:46

由于传入文件不是 UTF-8 并且您正在使用平面文件反汇编器,这意味着您必须在项目中定义平面文件 XSD。您可以在反汇编阶段在管道组件中使用此平面文件 XSD。

如果上述情况成立,最简单的修复方法是使用平面文件架构 (XSD) 中的代码页而不是管道组件,或者编写自定义管道组件只是为了修复编码。下面的屏幕截图显示了您可以在哪里设置源编码。

Since the incoming file is not UTF-8 and you are using a flatfile disassembler, it means you must have defined a flat file XSD in your project. You use this flat file XSD in your pipeline componet at disassemble stage.

If the above is true, the easiest fix is to use the code page in your flat file schama(XSD) rather than the pipeline component or writing a custom pipeline component just to fix encoding. The screenshot below shows where you can set the source encoding.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文