The NeedToConvertCodeset method

This method determines if conversion is necessary from the code set associated with the fromLocaleName locale to the code set associated with the toLocalename locale.

int NeedToConvertCodeset(const char *toLocaleName, 
                          const char *fromLocaleName) const

This method returns 1 if conversion is needed and 0 if not.

If there is an error, this method returns -1. Call ITLocale::GetError() to retrieve a specific error message.