As per recommended for 257492 , we are using aspose word 22.12 jar.
Getting following exception while setting Locale 'in_ID or ‘ín’ (Indonesian) to
CurrentThreadSettings.setLocale(loc);
com.aspose.words.net.System.Globalization.CultureNotFoundException: Culture ‘Culture name ‘in-ID’ is not supported’ is not supported
Code :
try
{
Locale backupLocale = CurrentThreadSettings.getLocale();
String userLocale = "'in_ID";
String[] locValue = userLocale.split("_");
Locale loc = new Locale(locValue[0], locValue[1]);
CurrentThreadSettings.setLocale(loc);
//other code
CurrentThreadSettings.setLocale(backupLocale);
}
catch (Exception e)
{
System.out.println(e.getMessage());
e.printStackTrace();
}