Sorry for I am not good at DICOM. I was trying to write into DICOM tag (0008,0080) with Chinese words by fo-dicom. But found the Tag value just show the messy code in the result file. Please help to review it .
The C# code is below:
var file = DicomFile.Open(@"C:\Users\Administrator\Desktop\20D08F04");
//file.Dataset.Add(DicomTag.SpecificCharacterSet, "GB18030");
//file.Dataset.Add(DicomTag.SpecificCharacterSet, "ISO_IR 192");
//I already tried to specified the 0008,0005 with GBK and Utf-8. but it doesn't work.
file.Dataset.Add(DicomTag.InstitutionName, "测试");
file.Save(@"C:\Users\Administrator\Desktop\test123.dcm");
The resulting file looks like blew in the DCMTK editor.
May anyone of you can help me?
Thanks in advance
Joe
Updated
I am sure the DVTK
Dicom file editor support the Chinese character set.
Because there is another attribute Patient's Name
's value is Chinese. And can be viewed properly. Thanks.