When the encoding of the DTD file and the encoding of the DTD file wherein XML declaration is done differs then, the character could not be processed normally and an error is generated. Synchronize both of these 2 character codes.
Example) When describing DTD file with Shift-JIS
<?xml version="1.0" encoding="Shift_JIS" ?>
<!ELEMENT Japanese element name (sample+)>