aarti_pl Joined: 07/25/06 Posts: 4 Posted: 03/19/07 14:17:24 In phobos it was possible to use std.windows.charset package and method toMBSz() and fromMBSz(). Is there equivalent in Tango?
In phobos it was possible to use std.windows.charset package and method toMBSz() and fromMBSz().
Is there equivalent in Tango?
Author Message sean Joined: 06/24/04 Posts: 109 Posted: 03/19/07 16:25:38 Not at the moment, no. Unless you're running Windows 98, the wide char routines are the preferred way for interacting with Windows. aarti_pl Joined: 07/25/06 Posts: 4 Posted: 03/19/07 20:18:31 That's ok when you just use files, which you "owns". In my company I introduced D (with standard library) for making tools for C++ code refactoring. With Tango it would not be possible now. Unfortunatelly most files which are created on Windows are NOT unicode files - they are coded with different codepages... Is there any time frame when we can expect such a functionality? I started to play with Tango and it looks interesting... larsivi Joined: 03/27/04 Posts: 614 Posted: 03/19/07 21:31:52 Currently noone has gone to the rather massive task of supporting all codepages around in D - but I believe the mango.icu package (which is Tango compatible and wraps IBM's ICU library) should do all you wanted (and probably much more) in that respect.
Not at the moment, no. Unless you're running Windows 98, the wide char routines are the preferred way for interacting with Windows.
That's ok when you just use files, which you "owns". In my company I introduced D (with standard library) for making tools for C++ code refactoring. With Tango it would not be possible now. Unfortunatelly most files which are created on Windows are NOT unicode files - they are coded with different codepages...
Is there any time frame when we can expect such a functionality? I started to play with Tango and it looks interesting...
Currently noone has gone to the rather massive task of supporting all codepages around in D - but I believe the mango.icu package (which is Tango compatible and wraps IBM's ICU library) should do all you wanted (and probably much more) in that respect.