IBM Support

[Db2] 全角ダッシュや波ダッシュなどが文字化けする原因と対処方法

Troubleshooting


Problem

データベース・アプリケーションで全角ダッシュ (ー) や波ダッシュ (~) が文字化けすることがあります。
これは、シフト JIS (943)、日本語 EUC (954)、日本語 EBCDIC (5026/5035, 930/939, 1390/1399) から Unicode (1200/1208) への変換で一部の文字 (全角ダッシュ、波ダッシュ、二重縦線、負記号、破線) に複数の変換ルールがあるためです。
また、Unicode からシフト JIS への変換でも一部の文字 (ローマ数字、括弧株、ナンバー記号、電話記号) に複数の変換ルールがあるため、これらは文字化けすることがあります。
注:943 などの数字は IBM が文字コードを識別する CCSID です。

Symptom

Problem (問題) にあげた文字がアプリケーションで文字化けしたり、同じ字形のはずが異なるコード・ポイントに格納されることがあります。

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"ARM Category":[{"code":"a8m500000008PlRAAU","label":"Codepage"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
01 May 2025

UID

ibm16510042