Conversion of fullwidth and halfwidth characters
The fullwidth and halfwidth character conversion functionality converts kana, alphanumerics and symbols from halfwidth to fullwidth and from fullwidth to halfwidth characters. This functionality supports multiple data types and you can specify the scope of application in units of files or fields.
When converting from an EBCDIC encoding to a non-EBCDIC encoding, or from a non-EBCDIC encoding to an EBCDIC encoding, you can specify the addition or trimming of shift codes in Shift code of the Output Settings screen in the Data Processing Settings screen. For details about Shift code in the Output Settings screen, see DataMagic Reference Manual.

Figure 9.28 Fullwidth and halfwidth character conversion (Shift JIS)
(1) Data types that can be set
Fullwidth and halfwidth character conversion can only be set if the input and output fields are any of the following types:
Data type |
Explanation |
---|---|
M |
Mix of kanji and ASCII characters |
W |
Unicode character string |
CSV string |
Mix of kanji and ASCII characters |
CSV numeric value |
Numeric value data |
XML string |
Mix of kanji and ASCII characters |
TXT character string |
Mix of kanji and ASCII characters |
-
For the field type X and N, you cannot set fullwidth and halfwidth character conversion.
-
If you set to convert alphanumerics from halfwidth to fullwidth, data of the field type CSV numeric value is converted to CSV character string data. If you specify a character in Enclosure character in the Outputting Settings screen of the data processing information, the enclosure characters are added.
(2) Setting the scope of application
You can set the scope in which fullwidth and halfwidth character conversion is applied by any of the following three methods.
- General setting
-
Choose this method to apply fullwidth and halfwidth character conversion to all fields in the output file.
-
For example, use the general setting if you want to convert all halfwidth kana in a text format file to fullwidth kana characters.
-
The content specified in Fullwidth and halfwidth character conversion of the Output Settings screen is applied to all fields.
- Individual settings
-
Choose an individual setting to only apply fullwidth and halfwidth character conversion to specified fields in the output file.
-
For example, use this setting if you want to convert only the halfwidth kana used in the kana field of personal names to fullwidth kana.
-
The content of fullwidth and halfwidth character conversion specified in the Field information of the Mapping Condition Settings screen is applied to the specified fields.
-
Note
If you use a user exit program, you cannot use an individual setting.
- Using the general setting and individual settings in combination
-
Use this method if you want to apply the fullwidth and halfwidth character conversion to all fields of the output file except when only applying another fullwidth and halfwidth character conversion to specified fields.
-
For example, use general and individual settings if you want to convert halfwidth alphanumerics to fullwidth in the general setting, except for halfwidth alphanumerics in a field containing a telephone number, which are to be output as they are without being converted.
-
The contents of fullwidth and halfwidth character conversion specified in the Field information of the Output Settings screen and of the Mapping Condition Settings screen are applied respectively.
(3) Conversion of fullwidth and halfwidth kana characters
The table below lists the target characters of fullwidth and halfwidth kana conversion (the Hex value column shows the corresponding values of ASCII codes as examples).
Characters that have a diacritic indicating a voiced consonant (゛) or a semivoiced consonant (゜) are converted from 2 halfwidth characters to 1 fullwidth character or in the opposite direction (for example, between ガ and ガ).
Char. |
Hex |
Char. |
Hex |
Char. |
Hex |
Char. |
Hex |
Char. |
Hex |
Char. |
Hex |
Char. |
Hex |
。 |
0xA1 |
ェ |
0xAA |
ウ |
0xB3 |
シ |
0xBC |
ナ |
0xC5 |
ホ |
0xCE |
ラ |
0xD7 |
「 |
0xA2 |
ォ |
0xAB |
エ |
0xB4 |
ス |
0xBD |
ニ |
0xC6 |
マ |
0xCF |
リ |
0xD8 |
」 |
0xA3 |
ャ |
0xAC |
オ |
0xB5 |
セ |
0xBE |
ヌ |
0xC7 |
ミ |
0xD0 |
ル |
0xD9 |
、 |
0xA4 |
ュ |
0xAD |
カ |
0xB6 |
ソ |
0xBF |
ネ |
0xC8 |
ム |
0xD1 |
レ |
0xDA |
・ |
0xA5 |
ョ |
0xAE |
キ |
0xB7 |
タ |
0xC0 |
ノ |
0xC9 |
メ |
0xD2 |
ロ |
0xDB |
ヲ |
0xA6 |
ッ |
0xAF |
ク |
0xB8 |
チ |
0xC1 |
ハ |
0xCA |
モ |
0xD3 |
ワ |
0xDC |
ァ |
0xA7 |
ー |
0xB0 |
ケ |
0xB9 |
ツ |
0xC2 |
ヒ |
0xCB |
ヤ |
0xD4 |
ン |
0xDD |
ィ |
0xA8 |
ア |
0xB1 |
コ |
0xBA |
テ |
0xC3 |
フ |
0xCC |
ユ |
0xD5 |
゛ |
0xDE |
ゥ |
0xA9 |
イ |
0xB2 |
サ |
0xBB |
ト |
0xC4 |
ヘ |
0xCD |
ヨ |
0xD6 |
゜ |
0xDF |
(4) Conversion of fullwidth and halfwidth alphanumeric characters
The table below lists the target characters of fullwidth and halfwidth alphanumeric conversion (the Hex value column shows the corresponding values of ASCII codes as examples).
Numeric |
Hex |
English char. |
Hex |
English char. |
Hex |
English char. |
Hex |
English char. |
Hex |
English char. |
Hex |
English char. |
Hex |
0 |
0x30 |
A |
0x41 |
K |
0x4B |
U |
0x55 |
e |
0x65 |
o |
0x6F |
y |
0x79 |
1 |
0x31 |
B |
0x42 |
L |
0x4C |
V |
0x56 |
f |
0x66 |
p |
0x70 |
z |
0x7A |
2 |
0x32 |
C |
0x43 |
M |
0x4D |
W |
0x57 |
g |
0x67 |
q |
0x71 |
|
|
3 |
0x33 |
D |
0x44 |
N |
0x4E |
X |
0x58 |
h |
0x68 |
r |
0x72 |
||
4 |
0x34 |
E |
0x45 |
O |
0x4F |
Y |
0x59 |
i |
0x69 |
s |
0x73 |
||
5 |
0x35 |
F |
0x46 |
P |
0x50 |
Z |
0x5A |
j |
0x6A |
t |
0x74 |
||
6 |
0x36 |
G |
0x47 |
Q |
0x51 |
a |
0x61 |
k |
0x6B |
u |
0x75 |
||
7 |
0x37 |
H |
0x48 |
R |
0x52 |
b |
0x62 |
l |
0x6C |
v |
0x76 |
||
8 |
0x38 |
I |
0x49 |
S |
0x53 |
c |
0x63 |
m |
0x6D |
w |
0x77 |
||
9 |
0x39 |
J |
0x4A |
T |
0x54 |
d |
0x64 |
n |
0x6E |
x |
0x78 |
(5) Conversion of fullwidth and halfwidth symbols
The table below lists the target characters of fullwidth and halfwidth symbol conversion (the Hex value column shows the corresponding values of ASCII codes as an example).
Symbol |
Hex |
Symbol |
Hex |
Symbol |
Hex |
Symbol |
Hex |
! |
0x21 |
) |
0x29 |
; |
0x3B |
] |
0x5D |
" |
0x22 |
* |
0x2A |
< |
0x3C |
^ |
0x5E |
# |
0x23 |
+ |
0x2B |
= |
0x3D |
_ |
0x5F |
$ |
0x24 |
, |
0x2C |
> |
0x3E |
` |
0x60 |
% |
0x25 |
- |
0x2D |
? |
0x3F |
{ |
0x7B |
& |
0x26 |
. |
0x2E |
@ |
0x40 |
| |
0x7C |
' |
0x27 |
/ |
0x2F |
[ |
0x5B |
} |
0x7D |
( |
0x28 |
: |
0x3A |
\ |
0x5C |
~ |
0x7E |