in reply to Is there a variable or function that returns the native platform encoding (APR_LOCALE_CHARSET)

POSIX::setlocale, which not only sets, but can also query the locale.
  • Comment on Re: Is there a variable or function equivalent to APR_LOCALE_CHARSET (native platform encoding)

Replies are listed 'Best First'.
Re^2: Is there a variable or function equivalent to APR_LOCALE_CHARSET (native platform encoding)
by ELISHEVA (Prior) on Feb 01, 2009 at 14:19 UTC
    Thanks!

    That's the locale, which isn't quite the same thing as the IANA name of the character set (I think). How do I get from the return value of setlocale(...) to the encoding? POSIX::localeconv(..) only gives me numeric formatting conventions.

        Thanks!

        I've been trying to stay away from I18N because the module docs said that it only worked on *nix systems. I need a solution that will work on both MS-Win and *nix. Do you know of a parallel module that works with MS-Win systems?

        Best, beth