Hi !
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!
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 ...
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?
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.
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!
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!