Is there an elegant, cross-platform, way to determine the latest Unicode version that a machine supports?

  • @colonial
    link
    English
    1
    edit-2
    1 year ago

    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.