Specific character set

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
candy
Posts: 24
Joined: Mon, 2008-10-20, 08:37

Specific character set

#1 Post by candy » Fri, 2009-03-06, 02:02

Hi ! :D
In enum DSRTypes::E_CharacterSet ,There is not one type of Specific character set for chinese.Could you tell me how should I do to create a sr document with chinese? I have read part 5,but forgiving my dullness,I still don't kown how to do. :? Thank your so much!

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier » Fri, 2009-03-06, 10:06

Chinese character sets are not supported by the dcmsr module because this would probably require the use of multiple character sets in the same dataset. If UTF-8 (Unicode) would be an option, you should try this ...

candy
Posts: 24
Joined: Mon, 2008-10-20, 08:37

#3 Post by candy » Wed, 2009-03-25, 02:42

I use this:doc->setSpecificCharacterSetType(DSRTypes::CS_ASCII);
It can be displayed in chinese. So I want to known that is this suitable?
If not ,Can you tell me how to use UTF-8?

Regards,
Candy

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#4 Post by Jörg Riesmeier » Wed, 2009-03-25, 09:44

I use this:doc->setSpecificCharacterSetType(DSRTypes::CS_ASCII);
It can be displayed in chinese. So I want to known that is this suitable?
I'm sorry but I don't understand your question. CS_ASCII can only be used for 7-bit ASCII characters (i.e. no special characters like you need for Chinese).
If not ,Can you tell me how to use UTF-8?
If you don't know what UTF-8 is, read this. In order to learn how different character sets are used in DICOM, read the relavant sections of part 5 of the DICOM standard.

candy
Posts: 24
Joined: Mon, 2008-10-20, 08:37

#5 Post by candy » Wed, 2009-03-25, 10:01

Thank you for reply :D

I created a SR document(filename is report.dcm) with
doc->setSpecificCharacterSetType(DSRTypes::CS_ASCII);
then in command line use this:dsr2html +H4 report.dcm report.html .
In the report.html ,It was displayed in chinese. Can you tell me what's wrong with it ?
I will read the material you gave to me.Thanks again! :D

Best Regards,
Candy

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#6 Post by Jörg Riesmeier » Wed, 2009-03-25, 10:23

Maybe it works on your system since your browser uses Chinese characters by default. Nevertheless, you are not allowed to use anything than ASCII characters in a DICOM file if the Specific Character Set is not defined accordingly!

candy
Posts: 24
Joined: Mon, 2008-10-20, 08:37

#7 Post by candy » Thu, 2009-03-26, 04:28

Thanks again! :D

Post Reply

Who is online

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