www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - using encodings other than UTF-8

reply "Piotr Dworaczyk" <pjdworaczyk o2.pl> writes:
hi!
I just recently found D on the Internet and it's very interesting.

trying to write some simple code I've got into trouble caused by national  
characters,
not encoded in UTF-8.
is there any way to process characters in other encodings?
or is D UTF-8 only?


-- 
Opera Mail: http://www.opera.com/mail/
Jun 11 2007
parent Derek Parnell <derek psych.ward> writes:
On Mon, 11 Jun 2007 12:22:11 +0200, Piotr Dworaczyk wrote:

 hi!
 I just recently found D on the Internet and it's very interesting.
 
 trying to write some simple code I've got into trouble caused by national  
 characters,
 not encoded in UTF-8.
 is there any way to process characters in other encodings?
 or is D UTF-8 only?

Unicode only. It does UTF8, UTF16 and UTF32 but no other encodings. Note that ASCII is a subset of UTF8, being codes from 00-7F inclusive. I think the Mango and Tango libraries have bindings to other libraries that can do other encoding translations. Have a look into http://www.dsource.org/projects/mango and http://www.dsource.org/projects/tango -- Derek Parnell Melbourne, Australia "Justice for David Hicks!" skype: derek.j.parnell
Jun 11 2007