[Dcmlib] GDCM and locale

Jean-Pierre Roux Jean-Pierre.Roux at creatis.insa-lyon.fr
Wed Mar 8 10:38:23 CET 2006


Mathieu Malaterre wrote:

> The heuristic for checking for invalid character is broken in gdcm:
>
> /home/mathieu/Creatis/gdcmData/gdcm-JPEG-Extended.dcm
>
> for example one cannot print: "Extrémités"

Well...
If Patient's Name is written with, say Greek -or Hebrew, or Russian, 
Thai, or, Jesus! French...- characters, it will not work !
We have to check :
0008|0005 [Specific Character Set]

ASCII         "ISO_IR 6"    (UTF-8)
UTF-8         "ISO_IR 192"  (UTF-8)
ISO Latin 1   "ISO_IR 100"  (ISO-8859-1)
ISO Latin 2   "ISO_IR 101"  (ISO-8859-2)
ISO Latin 3   "ISO_IR 109"  (ISO-8859-3)
ISO Latin 4   "ISO_IR 110"  (ISO-8859-4)
ISO Latin 5   "ISO_IR 148"  (ISO-8859-9)
Cyrillic      "ISO_IR 144"  (ISO-8859-5)
Arabic        "ISO_IR 127"  (ISO-8859-6)
Greek         "ISO_IR 126"  (ISO-8859-7)
Hebrew        "ISO_IR 138"  (ISO-8859-8)

Japanese

	

ISO_IR 13

	

ISO-IR 13

	

94

	

G1

	

JIS X 0201: Katakana

  	  	

ISO-IR 14

	

94

	

G0

	

JIS X 0201: Romaji

 
isprint() function returns true when a character belongs to the standard 
C locale, right?
Should we turn dynamiquely the C locale, according to the [Specific 
Character Set] ?
(no idea on the way to do it ...)
And what about display ?
Should we generate a HTML page, instead of an output on std::cout ?

Any suggestion welacome.

JP

>
>
> Mathieu
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>




More information about the Dcmlib mailing list