nroduit / weasis-dicom-tools

Basic dicom API
Other
34 stars 33 forks source link

can't read Chinese words #24

Closed Fearself closed 1 year ago

Fearself commented 1 year ago

in CFindNetTest can't read Chinese words "(0010,0010) PN [] PatientName" , it's null , HELP!

nroduit commented 1 year ago

More information is needed (context, system, Java version, log errors...)

Fearself commented 1 year ago

More information is needed (context, system, Java version, log errors...) Windows System(Windows11) Dicom server(Orthanc) weasis-dicom-tools(5.25.2) java version(1.8) in use “class CFindNetTest“ and try to read some Tags but found can't read chinese words ,its null , like this image The encoding inside the file is "ISO_IR 100",I've searched but still don't know how to fix it. image the name in my orthanc image

Thanks for your reply!!!

nroduit commented 1 year ago

The problem is in the response side of the server which has an ISO_IR_100 encoding. It should be ISO_IR 192.

nroduit commented 1 year ago

If you specify the charset in the query, it doesn't mean that the response must be in the same encoding, see this post.

Fearself commented 1 year ago

my server is “ISO_IR 192“ encoding image but i read it's "ISO_IR_100",i have no idea image i debug in class FindSCU ,i try to set "Tag.SpecificCharacterSet" but it's not work, how i can change the encoding when reading image

nroduit commented 1 year ago

You can try to add new DicomParam(Tag.SpecificCharacterSet, "ISO_IR 192"), in the query but as mentioned above this is the encoding only for the query part.

The file is stored with the encoding ISO_IR 192 on your server but the DICOM response of C-FIND is ISO_IR_100. This problem can only be solved in Orthanc.