DCML2XML - how to specify character set in the command?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
oguhantunes
Posts: 15
Joined: Mon, 2015-07-20, 14:25

DCML2XML - how to specify character set in the command?

#1 Post by oguhantunes » Sat, 2015-11-07, 18:47

Hi,
Iam facing some problems converting some dcm files to xml.
When i execute dcm2xcml command i get the error
"W: dcm2xml: (0008,0005) Specific Character Set absent but extended characters used in file: file1.dcm"
I opened the dicom file and verified that dicom tag 0008,0005 does not exists..
So, iam trying now executing dcm2xml specifying chracter set, with +Ca option
My command is
dcm2xml -d +Ca File1.dcm File1.xml
I get this error:
error: unknown value for --charset-assume. known values are latin-1 to -5, cyrillic, arabic, greek, hebrew.
I want to specify following Character set :
ISO Latin 1 "ISO_IR 100" => "ISO-8859-1"

How should i specify this in the command ?
Can anyone give me some help?
Thanks a lot.

J. Riesmeier
DCMTK Developer
Posts: 2284
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: DCML2XML - how to specify character set in the command?

#2 Post by J. Riesmeier » Sun, 2015-11-08, 18:27

Did you already try "+Ca latin-1" as the error message suggests?

oguhantunes
Posts: 15
Joined: Mon, 2015-07-20, 14:25

Re: DCML2XML - how to specify character set in the command?

#3 Post by oguhantunes » Sun, 2015-11-08, 18:39

Yes, it exactly that! Solved!
I was not undersanding how to specify Latin. It was missing -1
Thanks a lot J. Riesmeier !
Regards,
Hugo Antunes

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest