使用 informatica 将数据从平面文件加载到表中,同时具有英语和外语字符(如中文)

发布于 2024-08-10 22:29:31 字数 124 浏览 5 评论 0原文

我正在使用 informatica 将数据从平面文件加载到表中,该文件同时包含英语和外语字符,如中文等。加载后外语字符无法正确显示。如何解决这个问题呢? 我可以尝试使用 UTF-16 编码来解决这个问题,但之前我使用的是 UTF-8。

I am loading data from a flat file to table using informatica, the file has both english and foreign language characters like Chinese, and others. The foreign language characters are not getting displayed properly after loading. How can this problem be solved?
I could try to solve it by using UTF-16 encoding, but earlier I was using UTF-8.

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

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

发布评论

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

评论(2

醉殇 2024-08-17 22:29:31
  1. 从设计器中的源开始。您能否在源限定符预览中正确看到数据?如果没有,您可能需要将 ff 源定义编码设置为 UTF-8。

  2. 集成服务应在 Unicode 模式而不是 ASCII 模式下运行。您可以从管理控制台中的集成服务属性中进行检查。

  3. 目标应该是 UTF-8 编码。

    • 检查工作流管理器中的关系连接(如果目标是数据库)编码,确保其为 UTF-8
    • 如果问题仍然存在,请将输出写入 utf-8 平面文件并检查数据是否正确加载。如果是,则问题出在写入数据库上。
    • 检查数据库设置,例如 NLS_LANG、NLS_CHARACTERSET(适用于 Oracle)等。

Sadagopan

  1. Start with the Source in designer. Are you able to see the data correctly in the source qualifier preview? If not, you might want to set ff source definition encoding to UTF-8.

  2. the Integration service should be running in Unicode mode and not ASCII mode. You can check this from the Integration service properties in Admin Console.

  3. The target should be UTF-8 encoding.

    • Check the relational connection ( if the target is a database) encoding in workflow manager to ensure it is UTF-8
    • If the problem persists, write the output to a utf-8 flatfile and check if the data is loading properly. If yes, then the issue is with writing to the database.
    • Check the database settings like NLS_LANG, NLS_CHARACTERSET (for oracle) etc.

Sadagopan

神回复 2024-08-17 22:29:31

您需要找出运行加载工作流程的集成服务的编码。 Informatica 支持三种不同的编码:utf-8、ascii 和 windows-1252,您需要确保您的编码是 utf-8。您还需要告诉工作流的源限定符使用正确的编码来读取文件(可以是 utf-8 或 utf-16)。最后,您必须确保您的数据库表使用支持中文的编码。

You need to find out the encoding for the Integration Service that runs the workflow of the loading. Informatica supports three different encoding for this, utf-8, ascii and windows-1252, you need to make sure yours is utf-8. You also need to tell the source qualifier for the workflow to use the right encoding to read the file (could be utf-8 or utf-16). And finally you must make sure your database tables are using an encoding that supports chinese.

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