RosettaCodeData/Task/Literals-String/D/literals-string-2.d

5 lines
127 B
D

auto str = "hello"; // UTF-8
auto str2 = "hello"c; // UTF-8
auto str3 = "hello"w; // UTF-16
auto str4 = "hello"d; // UTF-32