Why ElementType!(char[3]) == dchar instead of char?
H. S. Teoh via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 1 09:51:08 PDT 2015
On Tue, Sep 01, 2015 at 07:40:24PM +0300, drug via Digitalmars-d-learn wrote:
[...]
> I'm just trying to automatically convert D types to hdf5 types so I
> guess char[..] isn't obligatory some form of UTF-8 encoded text. Or I
> should treat it so?
In D, char[]/wchar[]/dchar[] are intended to be UTF. If you're dealing
with strings encoded with other character sets, you should use ubyte[]
(or ushort[], etc.) instead.
T
--
EMACS = Extremely Massive And Cumbersome System
More information about the Digitalmars-d-learn
mailing list