Set  default locale

Please Help.
I have a form which I use drop down menus to set the currency.
like: numTotal.locale="de_CH";
But somehow the default value that this returns is. "SFr". Is there a way to change this programmatically in my form to always return "CHF".
I don't want to change the regional settings on my PC.
Many thanks in anticipation.

Thanks. But this is not the functionality I am looking for. I need a means to reset the return value of a default locale. eg German(Swiss) or de_CH returns SFr. I want it to return CHF.

Similar Messages

  • How to set default locale in JDK1.3.0 to US?

    Hi, everyone!
    I found the default locale in JDK 1.3.0 is not set to US when I converted our JDK from 1.2 to 1.3.0. So I have to change code by passing Locale.US.
    The output from below test code is:
    default=��100.00
    US=$100.00
    import java.util.Locale;
    import java.text.*;
    public class TestCurrency
    public static void main(String[] args)
    int amount = 100;
    //default
    NumberFormat moneyWriter = NumberFormat.getCurrencyInstance();
    System.out.println ("default=" + moneyWriter.format(amount) );
    //US
    moneyWriter = NumberFormat.getCurrencyInstance(Locale.US);
    System.out.println ("US=" + moneyWriter.format(amount) );
    Can anyone tell me how to set default locale in JDK 1.3.0 to US?
    Thanks!

    You have to set something on your computer (outside Java) to tell it that you are in the US. You didn't say, but I'm going to guess that you are using Windows; if that's so, then try Regional Options in Control Panel.

  • Setting default locale

    I'm having an issue with locales. I'm running SJSAS 8 and every morning (temporarily) a cronjob will reboot the whole system then start up the app server. The problem is that some of our characters in our webapps are showing up as question marks, I think because the locale of the startup user is either incorrect or undefined. If I start up the appserver with a user whose locale is set to something (like en_CA), then there are no issues. So I figured its an issue with the user that executes the cron. I changed the default locale (etc/default/init) to en_CA and rebooted. The next day when the cron ran and the system rebooted, the character issue remained. Is there some other locale I must set?
    thanks

    Ellen Kraffmiller wrote:
    Hi,
    How can I configure weblogic to use a default Locale that is different from the platform's default Locale? (Weblogic 6.1 on Solaris)
    ThanksThe locale of weblogic startup scripts or console?
    Thank you,
    Neo Gigs
    [email protected]
    "Follow the white rabbit..."

  • Can I set the default locale for jvm

    Hi,
    Can I set the default locale for jvm?
    How to do it?
    Pan

    My windows default locale is chinese .I have thought of your opinion. But in
    windows nt , if I change the locale , all the environment will be
    destroyed(just like reinstall it , it's difficult for me) . So , Is there
    any other approach?
    Dimitri Rakitine <[email protected]> wrote in message
    news:[email protected]...
    Did you try to change the locale in the Windows control panel?
    (Control panel -> Regional Options -> Your locale)
    Pan YangBin <[email protected]> wrote:
    I have tried changing this system property and other properties such
    as -Duser.language=en -Dfile.encoding=Cp1252 , but all these properties
    did
    not changed, you can get this infomation from the log file .Maybe these
    system properties are readonly.
    Thanks very much.
    Pan
    Chris Halstead <[email protected]> wrote in message
    news:[email protected]...
    Try adding -Duser.region=US to the java command line used to start
    WebLogic...
    -chris
    "Pan YangBin" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    The problem exists in my project still exist.That is it.
    When I did not set weblogic.jsp.encoding to GB2312 in my web
    application(web.xml), and when the jsp file contain's chinese , the
    output
    will be error(error chinese) .And when I did not set it , the output
    is
    correct, but when I use request.getParameter("SomeFormElement")(theelement
    inputed chinese), the return value is error(still chinese error).And
    when
    I
    am in windows nt english version and do not set this property, all
    these
    two
    problems dispear. And I try to compare the java files those were
    generated
    by weblogic from the jsp file , there is only two additional clause
    in
    the
    java file. That's it:
    ((weblogic.servlet.jsp.JspWriterImpl)out).setEncoding("GB2312");
    response.setHeader("Content-Type", "text/html; charset=GB2312");
    (the web.xml has <context-param>
    <param-name>weblogic.jsp.encoding</param-name>
    <param-value>GB2312</param-value>
    </context-param> to be set
    So, I think maybe it works well if I change the default locale toenglish.
    And unfortunately, your method is also failed.(I have to use weblogic
    in
    chinese environment)
    Would you please help me to solve this problem?
    Pan
    Dimitri Rakitine <[email protected]> wrote in message
    news:[email protected]...
    Try java ... -Duser.language=en ...
    or mode con cp select=437 in the command prompt before running
    weblogic.
    Pan YangBin <[email protected]> wrote:
    I'm using weblogic server 5.1 sp6 in chinese environment, and I
    want
    weblogic compile my jsp with en_us locale . So I can't use
    Locale.setDefault(new Locale(...)) to set the default locale ,butI
    really
    want someway configure.
    Pan
    Dimitri Rakitine <[email protected]> wrote in message
    news:[email protected]...
    Locale.setDefault(new Locale(...)) ?
    Pan YangBin <[email protected]> wrote:
    Hi,
    Can I set the default locale for jvm?
    How to do it?
    PanDimitri
    Dimitri
    Dimitri

  • Default-locale setting is ignored!

    Hi gurus,
    i tried following:
    <application>
    <message-bundle>mymessagess</message-bundle>
    <locale-config>
    <default-locale>en</default-locale>
    </locale-config>
    </application>
    In my application the locale is still de.
    What have i done wrong?
    Or how can i set the local in faces-config?!?!?
    Regards
    Wolle

    Hi,
    Have you tried it with the latest weekly build? You can find it at javaserverfaces.dev.java.net .
    I think you are regarding to issue 8 which has been solved.
    Greetings,
    Romano

  • Setting the user's default locale

    Hello all,
    I am working with an IRC applet client. This applet loads information based on the client's locale. I found that some machines load the wrong locale, and I guess it is a result of different settings in the OS. I need to make sure that all clients load the same locale. The machines which use this applet are all win32, and I have the benefit of being able to instruct them what to do in order to set their applet to the proper locale.
    The way I see it there are two alternatives: either setting the applet or the OS. I tried adding parameters in the Advanced tab of the Plugin's control panel (-Duser.language=he), but it did not help.
    Where should I look in the OS in order to set something which will change the applet's default locale?
    Is there anything else I can do???
    Thanks in advance,
    David.

    I assume you don't have access to the applet source code -- if so, you could easily change the code to use your own locale.
    If it wouldn't be in violation to any license agreement, you could decompile the applet to retrieve the source. There are several open source decompilers, I would just do a search here to get some names.
    Alternatively, you could write an applet loader which sets the JVM's default locale (using java.util.Locale.setDefault()) before passing control off to the applet. See http://forum.java.sun.com/thread.jsp?forum=4&thread=474305 (reply 5) for some hints on how this can be done.

  • How to set default file path while downloading alv output

    Hi,
    Can anyone tell me that how to set default file path while downloading the ALV output to system using Local file button on tool bar.
    Please look below screenshots:
    Kindly help me resolve it.
    Thanks in advance.
    Regards,
    Ashutosh Katara

    This information initial value is (maybe) stored in Windows Register (register.exe) at Software\SAP\SAPGUI Front\SAP Frontend Server\Filetransfer -> PathDownload, you can read it thru class CL_GUI_FRONTEND_SERVICES method GET_UPLOAD_DOWNLOAD_PATH and update it thru method REGISTRY_SET_VALUE. (Else there may be some parameter ID to force data, but I'm no longer sure)
    Regards,
    Raymond

  • Set Default Printer based on user setting using Powershell script

    Hi 
    I would like to create a script that runs on user log off and captures the default printer (set manually by the user) and then another script to reapply the settings (saved upon log off) when the user logs back in.
    This is because local printers are set as default printer (PDF Creator Programs) when we all use Network Printers so this means a user has to set default printer to the network printer all the time.
    I have found this script to start with:
    $Printer = Get-WmiObject -namespace root\cimv2 -Query “select * from Win32_Printer Where Default = TRUE” -Impersonation 3 | select name | out-file C:\temp\Printer.txt
    But the out file looks like this:
    name
    \\PrinterserverName\Accounts01
    Which I dont see how it can be used on another script plus there are spaces after\Account01 
    Any Ideas please?
    M
    Maelito

    Hi Maelito,
    According to your description, you want to export the default printer name to text file, then read this printer name from text file and set the default printer via Powershell:
    #save printer name to text file
    Get-WmiObject -namespace root\cimv2 -Query “select * from Win32_Printer Where Default = TRUE” -Impersonation 3 | select -ExpandProperty name | out-file C:\temp\Printer.txt
    # read printer name from text file and set default printer
    $name=get-content C:\temp\Printer.txt
    (Get-WmiObject -Class Win32_Printer -Filter "Name='$name'").SetDefaultPrinter()
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to set default sync calender category in Entourage 2008

    I am using Entourage 2008. Syncing it with ical then sync with iphone (as iphone cannot sync directly with Entourage). Everything works fine right now except that i cannot set default calender event category on Entourage.
    now, whenever i make a calender event on ical or iphone even enotourage. it default category as "none", how do i make it default to be "work" category? Now i have to go in every time to chage it, which makes a lot of trouble.
    Please help~!!!!
    Jason
    Message was edited by: jsky

    Hi,
    Try this procedures.
    1. Dont open your SBO program.
    2. Goto C:\Program Files\SAP\SAP Business One\Conf\ folder
    3. Delete file b1-local-machine.xml
    4. Log to SBO program.
    5. Apply all necessary authentication then select SQL_2008 then log.
    6. After logging exit to SBO program.
    7. Re-log again if SQL_2008 is already in default.
    Thanks.
    Clint

  • Maintaining default locale in multi-lingual application

    Hello,
    I have a multi-lingual application where the language can be changed at runtime.
    To make the following code work properly, the default locale has to be set each
    time the language changes. Why?
    Since I need to check sometimes the platforms original locale (I do this with
    "Locale.getDefault()"), I am looking for a way not to change the default locale,
    but still to change the resourceBundle.
    In the API I read under "ResourceBundle, Cache Management" that the bundles are cached. Is this the reason why redefining the resourceBundle has no effect? And if yes, how can it be avoided?
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class Y extends JFrame {
      boolean toggle;
      Locale currentLocale;
      JButton b;
      ResourceBundle languageBundle;
      String country, userLanguage;
      public Y() {
        setSize(300,300);
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        Container cp= getContentPane();
        b= new JButton();
        b.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
         toggle= !toggle;
         if (toggle)
           country= "DE";
         else
           country= "GB";
         setUserLanguage(country);
        cp.add(b, BorderLayout.SOUTH);
        setUserLanguage("GB");
        setVisible(true);
      public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
          public void run() {
         new Y();
      void setUserLanguage(String country) {
        if (country.equals("DE"))
          userLanguage= "de";
        else
          userLanguage= "en";
        currentLocale = new Locale(userLanguage, country);
    //    System.out.println(currentLocale); // The locale changes ...
    //    Locale.setDefault(currentLocale); // Remove comment slashes and it works.
    //    languageBundle.clearCache(); // No effect.
        languageBundle = ResourceBundle.getBundle("MyBundle",currentLocale);
        System.out.println(languageBundle); // ... but the resourceBundle does not change.
        b.setText(languageBundle.getString("ButtonText"));
    The resource bundle files:
    MyBundle.properties
    ButtonText= Just a button
    MyBundle_de_DE.properties
    ButtonText= Nur ein KnopfEdited by: Joerg22 on 18.08.2008 13:26

    What's your default locale? If your default locale is de_DE, that's the expected behavior. The reason for it is the fallback mechanism searches default locale's bundle before falls back to the base bundle, i.e., in case of searching en_GB bundle, the search order is:
    en_GB
    en
    de_DE
    de
    (base)
    So, it will choose MyBundles_de_DE.
    If you do not want this default locale fallback, you can specify ResourceBundle.Control instance, which is returned from ResourceBundle.Control.getNoFallbackControl() method, in your getBundle() call. Or if you do not use JDK6, you could copy the base bundle to MyBundles_en, which is ugly but should work.
    Naoto
    Edited by: naoto on Aug 18, 2008 1:05 PM

  • Default locale support for texts datasources

    Hi,
    I faced with problem - does BW support default locales ?
    I have some texts datasources which contain some list of entries for default locale. The question is - what value of LANGU field I should setup for  these entries in order to BW recognize them as for default locales ?
    Thanks. I will be apprecated for any related info.
    Fiodar.

    Hi Fiodar,
    well I am not sure about your requirement, but it sounds like you want to add a default value to langu in case the source system doesn't deliver it.
    If this is the case, create a update routine in your transfer rules for 0langu. In the routine add the following coding:
    if tran_structure-spras is initial. "no language specified
    usually the R/3-field is called spras
      result = sy-langu. "or a literal like 'EN' ...
    else.
    pass the given language to the result of the routine.
      result = tran_structure-spras.
    endif.
    That's it.
    In case your datasource doesn't even deliver a field for the language, you can just set a constant value to 0langu in your transfer rules.
    regards
    Siggi

  • Use GPO to set default language options, IME, display settings?

    new to GPO, we have a small Windows Server 2012 domain, all clients on Win7 or Win8.  All the clients require the following changes, anything I can automate this with GPO?  thanks
    Under Control Panel\Clock, Language, and Region\Language > Add Traditional Chinese HK SAR
    Under Control Panel\Clock, Language, and Region\Language > Traditional Chinese HK SAR > Options, Add Microsoft Quick IME
    Under Control Panel\Clock, Language, and Region\Language\Advanced settings - change language bar hot keys
        - CTRL+SHIFT+0 ------  To English (United States) - US
        - CTRL+SHIFT+0 ------  To Chinese (Traditional, Taiwan) - Microsoft Quick IME
    Under Control Panel > Region > Advimistrative > Change System Locale...  change to Chinese HK SAR for non-unicode programs
    Control Panel\Appearance and Personalization\Display > Change the size of all items, use custom 123%.
    Control Panel\Appearance and Personalization\Display > Update Text size to 8 for Title bars, Menu, Message Boxes, Icons, Tooltips
    I found this for the display scaling registry changes but it is for 125% and it uses 78 for the dword value, not sure about custom 123%.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/882f17a6-7465-4aa6-8cea-27aa37a28a4d/gpo-to-set-default-windows-7-display-scaling-to-125?forum=winserverGP

    Hi lilyl,
    According to your description, you would like to deploy some settings about language and display via GPO.
    According to my knowledge, the steps you provided are from Windows 8 clients. Based on my test, you can use the following methods to realize:
    Add Traditional Chinese HK SAR. Locate the registry key HKEY_CURRENT_USER\Keyboard Layout\Preload, and then add a String Value "next number"(which has not been used)=00000404.
    The region settings. Please refer to the similar post:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/ec6a290e-fc09-4be6-9f6a-1f532d338606/change-regional-settings-locale-settings-and-keyboard-layout-using-group-policy?forum=winserverGP
    The display settings. The post you provided tells us the related registry keys, and you should try to find the right value since you want to custom it.
    In addtion, please refer to the following article to learn to deploy a registry item:
    http://technet.microsoft.com/en-us/library/cc753092.aspx
    Regards,
    Lany Zhang

  • Msnbc will not hold its setting..local weather,news needs to be reset every time firefox is opened

    When I open firefox, the settings for msnbc I have set default to a different city and local news. When I reset them and save them on msnbc's websit and close the browser, they once again default to the wrong city.

    No, the app does not have to completely restart. It gets shifted in its open state into storage. Similar to how a computer uses the hard disk when it has insufficient memory.
    What complicates things is that sometimes memory does not get returned for reuse when you close an app. Thus yo should periodically double click the Home button and "delete" unnecessary apps from the multitasking dock and power off and then back on the iPod.

  • How to set default directory for SQL LOADER

    hi all,
    i wanted to know how can we setup a default directory for SQL LOADER if at all we can. i connot place my control and data files in local system and use them at command prompt. rather i wanted to know if we can set default directory that the loader can use. this requirement is basically to enable all the clients to upload the data placed on the server and use the loader utility.
    thanks in advance,
    Basavraj

    Ella,
    You don't say which version of SQL Developer you are using via Citrix, but just setting the SQLDEVELOPER_USER_DIR hasn't worked for a long time (see Re: SQLDEVELOPER_USER_DIR does not function anymore). Also, since version 1.5, the default for the user directory (now set via ide.user.dir as shown below) is under the user profile area (relative to %APPDATA%), which you should be able to write to, even on Citrix.
    Assuming that neither of those help, you will need to get whoever installed SQL Developer on the Citrix C: drive to modify the sqldeveloper.conf to have a line like, where the path exists for everyone who will be using the shared SQL Developer (assumes everyone has a H: drive):
    AddVMOption -Dide.user.dir=H:\sqldeveloperAn alternative (depending on how you start SQL Developer via Citrix), is to create your own shortcut to start SQL Developer with something like:
    sqldeveloper -J-Dide.user.dir="%SQLDEVELOPER_USER_DIR%"theFurryOne

  • How do you set default programs for all users when deploying Windows 8.1?

    I have my Windows 8.1 image set up the way I want including the start screen, theme, etc. But how can I set the default programs for all users. Most of out computers are non-touch and I want the desktop apps (e.g. Windows Photo Viewer), not the store apps
    to be the default for opening pictures, videos, etc. Can that be done?

    Great question, this has been bugging me too!
    So, I did some research by using "Set Default Programs" app in Windows 8. Then I ran the super ProcMon.exe tool from Sysinternals.com <Thanks Mark!>
    After filtering out the junk, I could see some *interesting* writes to the registry:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpg\UserChoice]
    "Hash"="57y87/ogggU="
    "ProgId"="PhotoViewer.FileAssoc.Jpeg"
    But the "Hash" part had me concerned. I did some internet searching for the hash, and came across a post and a pointer to a blog with some answers.  This is both good news and bad.
    Background:
    One of the problems with Windows XP is that any program can come in and party on the entire system. No, I don't want you to put a shortcut on the desktop, install a crappy IE Toolbar, and change the default file association for *.jpg files to your app, I
    just wanted to play a stupid game. Since Windows 7, Microsoft has been attempting to block that functionality from the stupid applications, and give them back to the user. Take note of the last line in the ITaskbarList3 interface:
       Applications cannot programmatically pin themselves to the taskbar. That functionality is reserved strictly for the user.
    Of course that sucks for us IT Pros who may wish to create *default* working environments for corporate images, but there are some tricks we can do.
    Solution:
    This blog appears to have the answer:
    http://blogs.technet.com/b/mrmlcgn/archive/2013/02/26/windows-8-associate-a-file-type-or-protocol-with-a-specific-app-using-a-gpo-e-g-default-mail-client-for-mailto-protocol.aspx
    New for Windows 8 is a dism command: /Get-DefaultAppAssociations that allows you to export a control case from a known good computer. Microsoft the supports importing the exported xml file via GPO. For example, before I changed the file association, .AVI
    was pointing to the Modern App, after the change the /export-DefaultAppAssociations shows change to the new app:
    From:
    <Association Identifier=".avi" ProgId="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt" ApplicationName="Video" />
    To:
    <Association Identifier=".avi" ProgId="VLC.avi" ApplicationName="VLC media player" />
    I am still doing some investigation to see if a GPO is required, or if you can inject the association into a local user account. Also, if you do have some Modern Windows 8 Touch Tablets, it would recomend keeping most of the Modern App defaults in place,
    perhaps seperate GPO's for Desktops/Laptops vs Tablets?
    -k
    Keith Garner - keithga.wordpress.com

Maybe you are looking for

  • T430s: boot from an external USB DVD drive

    I wanted to change boot sequence to boot from external DVD drive to install Win8. To access the BIOS I hit Enter (empty password I guess) but in the BIOS everything is greyed out: I can't make any changes. What is going on? Solved! Go to Solution.

  • Getting an arrayindexoutofbounds error when trying to run mail app

    here is the code, it compiles fine, but when i run it, i get an array index out of bunds error import java.util.Properties; import javax.mail.*; import javax.mail.internet.*; public class SimpleSender {   public static void main (String args[]) throw

  • Import Error Opening AppleWorks 6.2.9 .cwk files in Pages 3.0.2

    Once upon a time I could open all my Appleworks 6 files in Pages. Now, trying to open these files in Pages produces an "Import Error - AppleWorks document 'name xxx.cwk' is not a word processing document." The file(s) were saved, re-saved and re-save

  • Error on PCL10- Proration

    I created a wage type with a 1 in PCL10. This wage type should prorate. Its not captured in any infotype it is just calculated in the system. The wage type is supposed to prorate but if I put a 1(Cut with Factor /801) in processing class 10 i get the

  • Update Indesign, Illustrator und Photoshop

    Seit Wochen versuche ich das Update für Indesign, Illustrator und Photoshop zu laden und erhalte jedesmal die Nachricht "Fehlgschlagen". Was läuft da falsch?