Handling Encoding on Dataset/C-Find Operations

151 views
Skip to first unread message

sst.j....@gmail.com

unread,
Mar 11, 2016, 4:08:03 AM3/11/16
to Fellow Oak DICOM, Johannes...@sstmed.com

Hello,
our company started using fo dicom for development a few months ago.
Currently I am in the last phases of completing a DICOM software.
At the moment I have a problem I did not find a suitable solution for yet:

We have a PACS server which sends out data i ASCII. So far so good. The SCP uses DicomObjects for handling DICOM.
Our Viewer, using DicomObjects as well, displays all special chars correctly.
When I receive data from the PACS with fo dicom special chars are no longer displayed correctly/get broken all together.
Coming from web development I know exactly what the problem is. I already tried converting received data to and from all encodings supported by C# by default.
It did not change anything. Special chars remain broken.

So I would need to specify which encoding to use for the Association I guess, as the special chars get broken earlier.

How can I do this with fo dicom?
If someone could give me a detailed description on how to handle encoding in fo dicom alltogether would be even better.
Best Regards
Johannes Mederer

Anders Gustafsson Cureos AB

unread,
Mar 13, 2016, 4:45:54 AM3/13/16
to Fellow Oak DICOM, Johannes...@sstmed.com
Hi Johannes,

there are overloads of the DicomFile.Open and DicomFile.OpenAsync that allows you to specify a "fallback" encoding when Special Character Set (0008,005) is not explicitly specified in the DICOM dataset. Please give these overloads a try. If this does not help, please post an anonymized DICOM file illustrating your problem, and we might be able to take a closer look at it.

You might also want to look at the forum discussion here, or this issue.

Regards,
Anders @ Cureos
Reply all
Reply to author
Forward
0 new messages