Frits van Bommel, el 9 de junio a las 02:28 me escribiste: > Fractal wrote: > >Jarrett Billingsley Wrote: > >>Because those are the three string encodings D supports, and only > >>supporting one is a dumb idea. > >Why? wchar is full compatible with all languages (if it is not please tell > >me)... also when I have many strings in different types, I need to convert > >it from > >one type to other in each part of the program. Why three when one is suffice? > > IIRC, Chinese characters can't be represented by a single wchar. However, > that's not a problem since all three string types support full Unicode. > > >>are all Unicode, just different encodings. However, even if you can > >>throw an exception in Spanish, it might not print out correctly on > >>Windows unless you have your console configured correctly. > >Oh... I will take a look for that (console configuration)... but the char > >type dont supports some languages, because it only supports latin... Im > >wrong? The > >Exception on the two APIs uses char[]. I want Inernationalized programs. > > char[] supports any language that wchar[] and dchar[] support. It's just that > with char and wchar you need more than one of them for some characters. > > You may want to read http://prowiki.org/wiki4d/wiki.cgi?DanielKeep/TextInD > and http://en.wikipedia.org/wiki/Unicode (or one of its many translations if > your > English is not so good).
I recommend this small but very enlightening article if you know nothing about Unicode: http://www.joelonsoftware.com/articles/Unicode.html -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/ ---------------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------------- Hay manos capaces de fabricar herramientas con las que se hacen máquinas para hacer ordenadores que a su vez diseñan máquinas que hacen herramientas para que las use la mano