I am trying to write DCMDirectoryRecord Object into XML ,which has ISO 2022 IR 13 (i.e Japanese ) or ISO 2022 IR 149(i.e Korean ) Patient Name using WriteXML API.It add some junk values into it and am not able to parse that XML.

I wanted to know Is these character set are supported in DCMTK write XML ??If not what are other option to write into XML

The character set encoding is neither changed nor specified explicitly by the writeXML() API. This has to be done by the application. The command line tool dcm2xml for example supports a couple of character encodings (but not the ones you are asking for). See documentation for details.

I would recommend to convert the DICOM dataset to UTF-8 before writing the XML document (with the encoding specified explicitly).