@@ -0,0 +1,820 @@
+package com.aspose.email.examples.outlook.pst;%0D%0A%0D%0Aimport com.aspose.email.*;%0D%0Aimport com.aspose.email.examples.Utils;%0D%0A%0D%0Aimport java.util.Locale;%0D%0A%0D%0Apublic class SetCultureNameForCurrentThread %7B%0D%0A%09%0D%0A%09public static String dataDir = Utils.getSharedDataDir(SetCultureNameForCurrentThread.class) + %22outlook/%22;%0D%0A%09%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09%09//ExStart: 1%0D%0A%09%09Locale defaultLocale = Locale.getDefault();%0D%0A%09%09try %7B%0D%0A%09%09%09// set incorrect default Locale%0D%0A%09%09%09Locale.setDefault(new Locale(%22en%22, %22RU%22));%0D%0A%09%09%09// set Current Thread Locale%0D%0A%09%09%09CurrentThreadSettings.setLocale(%22en-US%22);%0D%0A%09%09%09// or%0D%0A%09%09%09//CurrentThreadSettings.setLocale(new Locale(%22en%22, %22US%22));%0D%0A%0D%0A%09%09%09PersonalStorage.create(dataDir + %22test.pst%22, FileFormatVersion.Unicode);%0D%0A%09%09%7D finally %7B%0D%0A%09%09%09Locale.setDefault(defaultLocale);%0D%0A%09%09%7D%0D%0A%09%09//ExEnd: 1%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

Create SetCultureNameForCurrentThread.java