I don’t know of any existing library, but I think it should be relatively easy to wrap existing APIs for all the major operating systems (locale on Linux, some PowerShell voodoo on Windows…) behind a single call, and just use runtime checks/conditional compilation to use the right one behind the scenes.
Edit: wait, I confused Unicode version for encoding type (8/16/32). Sorry, that’s my bad.
I don’t know of any existing library, but I think it should be relatively easy to wrap existing APIs for all the major operating systems (
locale
on Linux, some PowerShell voodoo on Windows…) behind a single call, and just use runtime checks/conditional compilation to use the right one behind the scenes.Edit: wait, I confused Unicode version for encoding type (8/16/32). Sorry, that’s my bad.