JDK1.3: Regional Options

Hi,
I'm using Win2000 Prof platform for development. The Locale and Language in "Regional Options" were set to "Typical Chinese (Hong Kong)". When I use JDK1.3 to compile my Java programs, strange symbols and Chinese will be displayed if any output messages (e.g. error messages) are generated by the compiler. I would like to have English display instead of Chinese and those strange symbols, but I don't want to set the locale and language for Win2000 to English. Could anyone give your advices? Thanks in advance!
P.S.: No such display problem when I used JDK1.2.

I am having the same problem on my Japanese Windows 2000 professional using Java 1.4.2_01. Did you find a solution?

Similar Messages

  • Windows "Regional Options" locale - JCE for 8bit vs 16bit character sets

    I have a Java application that reads in an Encrypted text file. The text file was Encrypted using JCE 1.2.1 and Encrypted on a Windows system with the locale set to English(US). The Encryption uses Sun's version of the DES encryption algorithm.
    This app reads in the Encrypted text file and Decrypts it and processes it's information.
    This works fine on Windows systems if the Regional Options control panel is set to a region that uses 8bit character sets:
    - English
    - Italian
    - Spanish
    - French
    But, if the locale is set to 16bit character set regions, the text file cannot be read and parsed. Such regions include:
    - Russian
    - Greek
    - English (Hong Kong)
    At this point, I think I have two options, but I would love to hear about more:
    - Edit the Encrypting/Decrypting code (or the parsing code - parses through a comma deliminated file) so that the file that is Encrypted and Decrypted can handle either an 8bit or 16bit character sets
    (Don't know how to do this)
    or
    - Programatically change the locale of Windows machines to English(US) at application start-up and then change it back to the previous locale setting on application shut-down
    (Don't know how to do this either)
    I'd appreciate any help. I'm not sure if this is an International issue or an JCE issue.
    Thanks in advance

    I found an answer to the problem I was having.
    The culprit were two special characters that the client was using in the encrypted text to distinguish between different fields and to distinguish carriage returns (� and �). The non Latin alphabet languages didn't know what to do with those characters so they substituted there own characters, thus breaking the parsing logic which was hard coded to look for � and �.
    The problem also was related to the fact that the JCE works with byte[] arrays. FileInputStreams (which deal with byte[] arrays) seem to convert the special characters to new characters in non Lating languages to match what was going on in the JCE logic.
    The easiest fix I could come up with, was to include a new properties file to be read by a separate FileInputStream. This properties text file contained just two characters (��). When I loaded in this new properties file via a FileInputStream, the two characters (��) in the properties file magically change to match the currently active alphabet (or didn't change at all if the computer was using a Latin alphabet).
    By checking the new properties file to see what the characters had changed to (if they had), I was able to know what to use to parse the encrypted data. And as such, regardless of what language the computer was set to, the encrypted data is now parsed correctly, as I took out the hard coding that looked specifically for the characters � and � and instead rewrote the code so it now uses the characters from the properties file (or whatever characters they change to) for parsing the content data.
    I hope others find this useful.

  • Windows "Regional Options" locale (8bit vs 16bit character sets)

    I have a Java application that reads in an Encrypted text file. The text file was Encrypted using JCE 1.2.1 and Encrypted on a Windows system with the locale set to English(US). The Encryption uses Sun's version of the DES encryption algorithm.
    This app reads in the Encrypted text file and Decrypts it and processes it's information.
    This works fine on Windows systems if the Regional Options control panel is set to a region that uses 8bit character sets:
    - English
    - Italian
    - Spanish
    - French
    But, if the locale is set to 16bit character set regions, the text file cannot be read and parsed. Such regions include:
    - Russian
    - Greek
    - English (Hong Kong)
    At this point, I think I have two options, but I would love to hear about more:
    - Edit the Encrypting/Decrypting code (or the parsing code - parses through a comma deliminated file) so that the file that is Encrypted and Decrypted can handle either an 8bit or 16bit character sets
    (Don't know how to do this)
    or
    - Programatically change the locale of Windows machines to English(US) at application start-up and then change it back to the previous locale setting on application shut-down
    (Don't know how to do this either)
    I'd appreciate any help. I'm not sure if this is an International issue or an JCE issue.
    Thanks in advance

    I found an answer to the problem I was having.
    The culprit were two special characters that the client was using in the encrypted text to distinguish between different fields and to distinguish carriage returns (� and �). The non Latin alphabet languages didn't know what to do with those characters so they substituted there own characters, thus breaking the parsing logic which was hard coded to look for � and �.
    The problem also was related to the fact that the JCE works with byte[] arrays. FileInputStreams (which deal with byte[] arrays) seem to convert the special characters to new characters in non Lating languages to match what was going on in the JCE logic.
    The easiest fix I could come up with, was to include a new properties file to be read by a separate FileInputStream. This properties text file contained just two characters (��). When I loaded in this new properties file via a FileInputStream, the two characters (��) in the properties file magically change to match the currently active alphabet (or didn't change at all if the computer was using a Latin alphabet).
    By checking the new properties file to see what the characters had changed to (if they had), I was able to know what to use to parse the encrypted data. And as such, regardless of what language the computer was set to, the encrypted data is now parsed correctly, as I took out the hard coding that looked specifically for the characters � and � and instead rewrote the code so it now uses the characters from the properties file (or whatever characters they change to) for parsing the content data.
    I hope others find this useful.

  • Set Regional Options in Default Domain Policy

    I want to configure the Regional Options for English UK, Location UK (to get the UK keyboard as the default keyboard as logons can be a problem as it is different to the US (default) keyboard)
    The problem is when I go to the Policy (Default Domain) Regional Options English United Kingdom are shown with a red underline and Location United States is shown but is greyed out, i.e. unchangeable. I cannot find out where to change these values
    to get the defaults changed to the UK.
    I have tried creating a policy for this and linking it to the domain, but the option remain the same with the US region greyed out.

    Hi,
    >>The problem is when I go to the Policy (Default Domain) Regional Options English United Kingdom are shown with a red underline
    Press F6 or F5, we can change the red underline to green underline, and this will enable the setting.
    Regarding GPP F5-F8, the following article can be referred to for more information.
    Enable and Disable Settings in a Preference Item
    http://technet.microsoft.com/en-us/library/cc754299.aspx
    >>I have tried creating a policy for this and linking it to the domain, but the option remain the same with the US region greyed out.
    We can change this setting via GPP Registry. The following key holds the setting for Location:
    HKeyCurrentUser\Control Panel\International\Geo\Nation
    We can change the value data to 242 which is the Microsoft geographical location values for UK.
    Regarding this topic, the following thread can be referred to for more information.
    Location section is greyd out in Regional Settings
    http://social.technet.microsoft.com/Forums/en-US/23b6769d-259b-4a7b-a6bb-b6ff955836ec/location-section-is-greyd-out-in-regional-settings?forum=winserverGP
    In addition, the following article provides the list of Microsoft Geographical Location Values for corresponding countries.
    Microsoft Geographical Location Values
    http://msdn.microsoft.com/en-us/library/ms912039.aspx
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
    Best regards,
    Frank Shen

  • How to get regional options information using java api

    Hi all
    I want to read what is properties like what is the currency symbol , what is the precession , what is the digit seperator and No of digits after the decimal .. such information i want to get using the java API
    How can i get this information.
    i tried with Locale API.
    But it always giving me the default information only.
    If i go and change those things in teh regional options it is not effecting
    Any suggestions.
    Thankin you

    http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormatSymbols.html

  • Accessing Windows XP "Regional Options"

    In the Windows XP control panel, I can set the "Regional Options" for my computer. For example, the currency format looks like this: "$123,456,789.00" and the time format like this: "16:10:51".
    Is there an API that allows me to access these formats from within Java, and can notify me when they change?

    Is there any native API such as C/C++ that we
    can call and then we can in turn write our own JNI
    interface to connect to it.Clearly there is, because many of the Windows programs I use every day display dates in the format I specified in the Regional Settings.
    Do I know what it is? No. But this isn't the best place to look for that information. MSDN is the best place.

  • Java time and windows Regional Option

    I want to return a time,so ,how is set on window's regional option.
    I set time on windows Regional Option so - 13:38:29, bat java return another format 1:38:29.
    for example. time is 13:40 PM on windows.
    Calendar date=Calendar.getInstance();
    date.get(Calendar.HOUR); this returns 1 not 13.
    What to do to return 13 not 1.

    Google (or even just the search box on this forum) is your friend:
    http://forum.java.sun.com/thread.jspa?forumID=16&threadID=318720
    http://forum.java.sun.com/thread.jspa?forumID=16&threadID=244377
    http://forum.java.sun.com/thread.jspa?forumID=16&threadID=544738
    http://forum.java.sun.com/thread.jspa?threadID=626159&messageID=9468678

  • Can't install with regional options changed

    Hi,
    I tried to install WL 8 in Windows XP. I've set the Regional Language Options
    to Tamil. I'm not able to install WL. After I change it to English, I was able
    to install it. Similarly when starting a server, if I had set my Regional Language
    Options to Tamil, it gives me some errors. As a work around, I change the options
    to English; start the server; and switch back to Tamil. Is there any solution
    to this problem?
    -Pranni

    Hi aliciageeg, and a warm welcome to the forums!
    How much free Space on your Hard Drive by the way?
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Tiger Install disc that came with your computer, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    Try installing while in Safe Mode, reboot.

  • Change Country or Region option not available in my account

    Hello there,
    I've got an Iphone 4s recently. I logged in my account but I can not find or have the option "Change Country or Region".
    How can you help?

    This solution did NOT work for me
    because in 'iTunes & App Stores'
    it does not show any option to change stores!
    It shows
    Apple ID:
    iTunes Match = off
    Autmoatic Downloads
    Music
    Apps
    Books
    Use Celluar Data
    there is no option to change iTunes store The options mentioned in this 'solution' do not show

  • REGIONAL OPTIONS with WEBUTIL

    When trying to run an application with Webutil while having regional settings other than English, the application fails to start.
    Webutil seems to be unable to create the webutil.properties file in the Jinitiator directory on the client with regional settings other than English
    Once this file is present in the Jinitiator directory , the regional settings can be in whatever language and the application starts fine
    Any ideas??
    For more information : See bug 3426694 on Metalink

    When trying to run an application with Webutil while having regional settings other than English, the application fails to start.
    Webutil seems to be unable to create the webutil.properties file in the Jinitiator directory on the client with regional settings other than English
    Once this file is present in the Jinitiator directory , the regional settings can be in whatever language and the application starts fine
    Any ideas??
    For more information : See bug 3426694 on Metalink

  • Date format does not change with the Regional and Language Options in 2008

    I have a one-column report that was created using the SQL "select current_date" in postgres.  (Thinks select getdate() ).
    In Crystal Reports XI when I change the "Standards and Formats" of Regional Options to:
    English (United States)  the date is in the format mm/dd/yy
    English (Canada) the date is in the format dd/mm/yy
    Japan the date is in the format yyyy/mm/dd
    In Crystal Reports 2008 when I change the "Standards and Formats" of Regional Options to:
    English (United States)  the date is in the format mm/dd/yy
    English (Canada) the date is in the format mm/dd/yy
    Japan the date is in the format mm/dd/yy
    It doesn't change.  Is this a bug?
    Thanks in advance,
    J

    hey Jason,
    i am going through some of the old forum posts and saw that no one replied to your language options post.
    for cr 2008, there are language packs for the applicable languages. there are advantages for this as you can save installation space with the option of installing language packs for each language that you want the designer application to be in.
    you have seen the disadvantage as it doesn't work the same as before.
    you do not need the language packs for testing though. in the crystal reports View menu, switch up to the Product Viewing Locale to test objects which are using "system" settings such as dates.
    if you do wish to install any language packs so that you can change up the actual language in the designer, go to your install media. in the install files "\package\langs\" directory, you will see a folder for each language that you need. install the desired language(s).
    once you have installed a language pack and then restart the cr designer, you will now have the additional language in the View > Product Locale.
    so in summary...Product Locale will change the language of the whole designer...language packs are needed for this.
    Preferred System Locale can be used to test languages without having to change your windows system settings.
    i hope that this helps,
    jamie

  • Apps' content in Chinese despite correct region set

    Hi Guys!
    Let me start off by saying this is my first post and I've just set up an account with sole intention to seek advice. I really hardly ever register onto online boards where I have not contributed previously and start up threads that junk it up. I believe it's rude and that people should google extensively prior to starting posts asking for help. I did, however, google, and a lot, and I have not found possible cause of my problem/way to solve it and not even a single case like it O_o.
    So I think asking others might be my only chance. Especially since I know VERY LITTLE about Apple products and I've had an Iphone for like a month. So maybe there's just something really simple I'm missing.
    Here's the thing:
    iphone 4s, iOS 7 (have not upgraded to 8 and would rather not for now)
    problem : free apps from App Store I download, have widgets in Chinese! >_< . The store displays them as it should, in English. The apps descriptions are normal too. The Chinese only shows AFTER downloading and running them. Store region is set to Poland (that's where I live), prices are displayed in Euros -as they're ment to be, some apps display properly after buying but others do not (example: Puffin browser, Amazon app, Documents 5 pdf reader)
    I tried removing and downloading these apps again, shutting my phone on and off, logging in and out off App Store, double-chacked there's no Asian country set anywhere as locale, to no avail - problem remains >_<;
    This issue started at a very particular moment:
    when I started messing with the regions option
    By "messing", I just mean that I had to 'pretend' to be a US  citizen(temporarily changing address and phone details)  to access US App Store instead of my default, Polish one. I needed an HSBC bank app and it was not released for Polish Store (ridiculous!), so I changed to US Store, downloaded the app and changed back to my regional store. HSBC does not display in my "purchased" apps list, as if it's not recognizable ( since bought/downloaded from different store level), but the app widget is still there and it works just fine. (no Chinese lettering in the app itself, just it settings).
    Since then, I'm having this language problem on random apps I obtain. Have I messed something up by changing to US store that one time? Or is Apple just punishing me for tricking them in order to download that HSBC from a foreign country's AppStore?
    Either way, it's so troublesome! I need acess to these apps, but I can't read a word they say >_<
    They're useless and there's no way to change language settings for them anywhere.
    Do I go back with my phone to the store and cry or just try setting up a new AppleID and logging on from it? (I really would rather stick with current one )
    I'm also thinking about getting rid of that HSBC app from the US Store, since it seems to be the cause of the glitch, but it is my bank and I kinda need it >_< Would be sweet if I could keep the "smuggled in" app and fix that bug.
    ps. Amazon app actually displays English content, but welcoming screen is for Amazon.cn (China) and some options are in Chinese as well >_<
    Any help or advice would be greatly appreciated.
    Thank you for reading.

    It sounds like you will have to contact the App developer.
    You can find the developers contact information on the application information page in the App Store.

  • Currency in report taken from regional setting and not infocube

    Dear All,
    I am facing very strange issue. I am using BEx analyzer 7.0
    I executed a report in Windows 2000, Excel 2003. The values are displayed correctly with currency which is in cube irrespective of the currency set in regional option in control panel.
    We are doing testing on windows vista and excel 2007 as we will upgrade to SAP GUI 7.10 and windows vista. I executed the report and the result values are matching but the currency is differant. The currency is taken from the regional settings in control panel. If I go to regional setting and change the currency, the report which is open in BEx analyzer changes the currency.
    We are facing this strange issue for only queries on 1 infocube. Other queries on another infocubes/multicubes are working fine.
    Has anyone faced the same issue. Please provide some pointers/solutions for above issue.
    Regards,
    Niraj

    Hi Shalu
    The Library 0FL has 4 currencies... i.e.
    HSL  - Local Currency  
    TSL   - Transaction Curre
    KSL  - Second Currency 
    OSL  - Third Currency  
    Go to GRR2 (Report form of your report), and double click on any column... You choose Key Figures in the Columns in a areport painter report... there you would have chosen any one of these currencies...
    Right click on the column and Copy it and paste it... Now change the Key Figure of the copied column to the one you desire...
    This should give you values in both currency...
    To identify which form you have used in GRR2 - Execute your report and go to Extras Menu > Technical Information.. In the pop up window that opens, double click on field "Report".
    Regards
    Ajay M

  • 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.

  • JNI_CreateJavaVM fail in JDK1.4

    Dear all,
    I made a simple test program to create Java VM in C++ code on Sun 5.8 with JDK1.4. The error is as below:
    #./jnitest
    There was an error trying to initialize the HPI library.
    Please check your installation, HotSpot does not work correctly
    when installed in the JDK 1.2 Solaris Production Release, or
    with any JDK 1.1.x release.
    Can't create Java VM
    The code of test program jnitest.cxx is as below:
    #include <jni.h>
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <iostream.h>
    main() {
    JavaVMInitArgs vm_args;
    JavaVMOption options[4];
    JNIEnv *env;     // pointer to JNI environment
    JavaVM *vm;    // pointer to Java virtual machine
    jint res;
    options[0].optionString = "-Djava.compiler=NONE"; /* disable JIT */
    options[1].optionString = "-Djava.class.path=./"; /* user classes */
    vm_args.version = JNI_VERSION_1_4; //change it to JNI_VERSION_1_2
    // for JDK1.3
    vm_args.options = options;
    vm_args.nOptions = 2;
    vm_args.ignoreUnrecognized = JNI_TRUE;
    res = JNI_CreateJavaVM(&vm, (void **)&env, &vm_args);
    if (res < 0)
    cerr << "Can't create Java VM\n";
    exit(1);
    } else {
    cerr << "Java VM initialized\n";
    vm->DestroyJavaVM();
    cerr << "Java VM destroyed\n";
    I use the following command to do the compiling:
    /opt/corp/inm_3rdparty/SUNWspro/bin/CC -I./ -I/opt/corp/inm_3rdparty/j2sdk_1.4.0/include -I/opt/corp/inm_3rdparty/j2sdk_1.4.0/include/solaris -L/opt/corp/inm_3rdparty/j2sdk_1.4.0/jre/lib/sparc -ljvm jnitest.cxx -o jnitest
    I got the executible jnitest. Then set up LD_LIBRARY_PATH as below:
    setenv LD_LIBRARY_PATH /opt/corp/inm_3rdparty/j2sdk_1.4.0/jre/lib/sparc
    Run jnitest, then I got error message which is posted in the beginning.
    If I change the compiling and environment LD_LIBRARY_PATH to JDK1.3.1 and change JNI version to JNI_VERSION_1_2 in jnitest.cxx, everything works. The VM can be created properly. So is it bug in JDK1.4? How can I create Java VM in C++ in JDK1.4? I checked the JDK1.4 JNI API, I don't find any difference for this method JNI_CreateJavaVM between JDK1.3 and JDK1.4.
    Thank you very much for the help,
    Linda ----looking forward your valuable comments :-)

    where did you find that you are supposed to set version to 1.4?
    vm_args.version = JNI_VERSION_1_4; //change it to JNI_VERSION_1_2the only thing i have found is to use 1.2.
    vm_args.version = JNI_VERSION_1_2;i am using jdk 1.4 and i am successfully creating a JVM but im on windows 2000. i think the highest version of JNI is 1.2....(maybe)...
    good luck

Maybe you are looking for