Internationalization vs. Unicode

Jacob Carlborg doob at me.com
Sat Apr 27 03:37:29 PDT 2013


On 2013-04-27 00:09, Tyro[17] wrote:
> There are myriad encoding schemes. D natively supports Unicode and
> provide functionality via phobos. A byproduct of this is that since
> ASCII is a subset of Unicode, it also natively support ASCII. This is a
> plus for the language but what of the other encoding schemes? What
> library functionality is provided to manipulate or convert between those
> encoding schemes and Unicode?
>
> I have a need to convert from CKJ encoding (presently EUC-JP and
> Shift-JIS) to Unicode. How do I accomplish this using D/Phobos? Is there
> a standalone library that does this? If so, can someone point me to it?
> If not, is there planned functionality for inclusion in phobos or am I
> doomed to resorting to Java or some other language to accomplish this
> task (or at least until I'm educated enough to do it myself)?

Would ICU do the work? If that's the case you can take a look at this:

https://github.com/d-widget-toolkit/com.ibm.icu

I will most likely not compile with the latest version of DMD. Also I 
don't know how complete it is.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list