DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Wed, 2018-04-25, 13:42

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri, 2018-01-12, 16:11 
Offline

Joined: Fri, 2018-01-12, 12:21
Posts: 4
Hallo!
I'm dealing with a dicom file whose TAG (0008, 0005) holds "ISO_IR 192" (Utf-8).
Such file contains non ASCII characters, i.e. "à", "è", "ì": the dump produced from dcmdump.exe (v.3.6.2) gets a correct representation of those characters.

Now, i'm trying to use dcmodify tool (v.3.6.2) to modify TAG (0010, 0010) in order to insert in the corresponding Value "Niccolò".
The command line I use is: dcmodify -v -i "(0x0010, 0x0010)=Niccolò" IMAGES/0000.dcm
The result is incorrect, as character "ò" is encoded 0x28A6 instead of 0xc3b2 (U+00F2 - ò - LATIN SMALL LETTER O WITH GRAVE).
dcmdump confirms the introduction of wrong characters.

Is there a solution to this issue?

Thank you for any help, very appreciated!
Ilaria


Top
 Profile  
 
PostPosted: Fri, 2018-01-12, 19:14 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1928
Location: Oldenburg, Germany
Maybe, the character set (aka codepage) of your shell (cmd.exe?) is not set appropriately. Did you check dcmdump's output on the console or in a text editor (which supports UTF-8)?


Top
 Profile  
 
PostPosted: Tue, 2018-01-16, 09:44 
Offline

Joined: Fri, 2018-01-12, 12:21
Posts: 4
I'll check on the base of your hint, thank you in advance!

Best regards
Ilaria


Top
 Profile  
 
PostPosted: Mon, 2018-01-29, 15:58 
Offline

Joined: Fri, 2018-01-12, 12:21
Posts: 4
Hallo, after having checked my environment, I solved my issue by adding th following line code to my app:

QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));

In fact, I'm developping in the Qt framework and the problem was lying in the arguments list parsing performed by the QProcess class.

Hope, it could be useful for someone else.

Thank you and best regards.
Ilaria


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group