UNICODE / multi-byte character sets

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
abilger
Posts: 1
Joined: Thu, 2005-10-20, 17:02

UNICODE / multi-byte character sets

#1 Post by abilger »

Are multi-byte character sets such as UNICODE (ISO_IR 192) supported?

The documentation for function

Code: Select all

OFBool DicomDirInterface::isCharsetValid(const char * charset)
in document http://support.dcmtk.org/docs/classDico ... rface.html suggests that only single-byte character sets are supported.

Thanks for any hint.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1445
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

In our project we have never had a need to support multi-byte characters, which means that this kind of functionality is totally untested in DCMTK. It may or may not work. In the case of Unicode (UTF8), however, I would expect things to work since UTF8 never introduced null bytes in the middle of a character string.

rinuraj4u
Posts: 2
Joined: Thu, 2009-01-29, 14:12
Location: India

#3 Post by rinuraj4u »

So can we simply use mbstowcs() to convert it to specific character set ?
Or do we need to do anything else (for e.g.: for showing Japanese patient name in Japanese character). Please advice
Marco Eichelberg wrote:In our project we have never had a need to support multi-byte characters, which means that this kind of functionality is totally untested in DCMTK. It may or may not work. In the case of Unicode (UTF8), however, I would expect things to work since UTF8 never introduced null bytes in the middle of a character string.

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 »

You should read about character sets in part 5 of the DICOM standard ...

Post Reply

Who is online

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