Problem with uppercase letters in Preferences

The following code [excuse lack of formatting]
----- snip ----
import java.util.prefs.*;
public class PrefTest {
Preferences prefs = Preferences.systemRoot();
public PrefTest() {
public void DoIt() {
Preferences myPref = prefs.node("com/MyCompany/MyPackage");
Preferences prefa = myPref.node("MyClass1/Configuration");
prefa.put("MyString", "MyValue");
public static void main(String[] args) {
PrefTest cfg = new PrefTest ();
cfg.DoIt();
----- snip ----
produces the following registry entries [Wndows XP]
----- snip ----
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs\com]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs\com\/My/Company]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs\com\/My/Company\/My/Package]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs\com\/My/Company\/My/Package\/My/Class1]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs\com\/My/Company\/My/Package\/My/Class1\/Configuration]
"/My/String"="/My/Value"
----- snip ----
As you can see, all the uppercase letters are prefixed by a '/'.
I can see nothing in the docs for java.util.prefs which defines
such behaviour. Is this a bug, a feature or what?
Regards, Alan Beale

OK, I'll reply to my own post, as I think I've found the answer
in case anyone else is interested...
From
http://developer.java.sun.com/developer/technicalArticles/releases/preferences/
-- snip --
You'll see the result of running the code above under J2SE Beta 1.4 for Windows in Figure 1. Note that WML is encoded as /W/M/L, and PreferredChannel as /Preferred/Channel because Preferences has case-sensitive keys and node-names, while the backing store of choice (in this case Windows Registry) does not.
-- snip --
This implies that reading back the prefs should work OK, although the
data in the registry looks ugly. If this is the case [haven't tested
it yet] then it's not a problem.

Similar Messages

  • Has anyone had a problem with the letters literally rubbing off the keyboard?

    Has anyone had a problem with the letters actually disappearing from the keybord, like being gradually rubbed out? My macbook air had this problem one year after purchase. They fixed it for free. Now, a year later, I have the same prob. Apple doesnt want to know.
    I would be delighted with any suggestions, reactions etc. thanks in advance.

    I don't have to be doing anything or be anywhere near the computer.
    The machine feels warm but i don't know if thats normal or not.
    Imac, 20-inch,mid 2007
    Processor 2 GB  intel core 2 Duo
    Memory 2 GB 667 MHz DDR2 SDRAM
    Graphics ATI Radeon HD 2400 XT 128 MB
    Software OS X 10.8.2 (12C54)
    No third party extensions that Iknow of

  • Problems with special letters while export/import the application

    Hi all,
    I have a HTML DB with german letters in the labels and buttons. After the import of my application I have developed recently, alle the german letters are replaced with curious characters like ö instead of ö e.g.
    Do you know a solution for this problem?
    Thx!
    Michal

    Hi Michal,
    1) What is the version of HTML DB?
    2) What is your database character set?
    3) What does the configuration of your Database Access Descriptor look like?
    4) If HTML DB 2.0, have you applied the PL/SQL Web Tloolkit patch?
    Joel

  • Problems with croatian letters (CP1250)

    Hello.
    I have got a small problem with some characters in my application. I am working on Java Card tehonlogy with Gemplus GemXpresso 211PK tool (reader is GemPC410) and when I made an application in JBuilder 8 (I am using(I had to) JDK 1.2. not new 1.4.-> that they wrote in documentation) I try to run application but when application is running our Croatian characters are not shown (they are replaced vith rectangle) and I don't know what to do. I try with the java.util.Local package but it's not working and i try to change the code page in JBuilder on Cp1250 but stil nothing.
    I want to ask you if you can help me.
    Thank you very much.
    Bye,
    Mario.

    Haha, I understand most of the Sweedish language, but I never get the nickname you guys are using on us: "norrbagge"... I guesing it not excactly the same as "normann"?
    Setting locale in .bashrc did not solve my problems. Tried them all. 
    After putting <export LC_ALL="nb_NO.iso88591"> in .bashrc, the comand: "locale" gives me:
    in xterm:
    [kristian@localhost ~]$ locale
    LANG=nb_NO.UTF-8
    LC_CTYPE="nb_NO.iso88591"
    LC_NUMERIC="nb_NO.iso88591"
    LC_TIME="nb_NO.iso88591"
    LC_COLLATE="nb_NO.iso88591"
    LC_MONETARY="nb_NO.iso88591"
    LC_MESSAGES="nb_NO.iso88591"
    LC_PAPER="nb_NO.iso88591"
    LC_NAME="nb_NO.iso88591"
    LC_ADDRESS="nb_NO.iso88591"
    LC_TELEPHONE="nb_NO.iso88591"
    LC_MEASUREMENT="nb_NO.iso88591"
    LC_IDENTIFICATION="nb_NO.iso88591"
    LC_ALL=nb_NO.iso88591
    in aterm:
    [kristian@localhost ~]$ locale
    LANG=no_NO.ISO-8859-1
    LC_CTYPE="nb_NO.iso88591"
    LC_NUMERIC="nb_NO.iso88591"
    LC_TIME="nb_NO.iso88591"
    LC_COLLATE="nb_NO.iso88591"
    LC_MONETARY="nb_NO.iso88591"
    LC_MESSAGES="nb_NO.iso88591"
    LC_PAPER="nb_NO.iso88591"
    LC_NAME="nb_NO.iso88591"
    LC_ADDRESS="nb_NO.iso88591"
    LC_TELEPHONE="nb_NO.iso88591"
    LC_MEASUREMENT="nb_NO.iso88591"
    LC_IDENTIFICATION="nb_NO.iso88591"
    LC_ALL=nb_NO.iso88591]
    Why doesn't "LANG" match with the others? Where can I change it?
    The loadkeys-problem was because I forgot to run it as root :oops:  But it did not solve anything. 
    I got the Idea that aterm might be compiled without support for Norwegian letters, and tried to recompile it. Man that is easy to do with "abs"!! But it did not solve my problems  , or maybe I just tried the wrong flags. Tried --enable-greek --enable-big5 --enable-kanji, but all I got was som werid japanese(or something) letters. I reinstalled aterm from current.

  • Problems with norwegian letters when browsing samba share.

    When I'm browsing my samba share from my ArchLinux workstation, files in the share with norwegian letters are not shown correct. This applies both from aterm and konqueror.
    But if I use a Windows XP/2000 machine, everything is shown like it is suppose to do with norwegian letters.
    The samba server is also running ArchLinux. On my workstation I'm using Enlightenment as windowmanager.
    Is this a problem with my samba server or with my linux workstation? What can I do to fix it?
    [orjanp@ArchLinux ~]$ cat /etc/samba/smb.conf
    # Global parameters
    [global]
    workgroup = HJEMMENETT
    server string = Samba
    username map = /etc/samba/smbusers
    log file = /var/log/samba.%m
    max log size = 50
    dns proxy = No
    printer admin = root
    load printers = yes
    use client driver = Yes
    display charset = ISO-8859-1
    dos charset = 850
    [homes]
    comment = Home Directories
    read only = No
    browseable = No
    [Media]
    path = /mnt/media
    browseable = yes
    write list = orjanp
    [Software]
    path = /mnt/progs
    browseable = yes
    write list = orjanp
    [Bacup]
    path = /mnt/bacup
    read list = orjanp
    write list = orjanp
    browseable = No
    [HP750]
    comment = Samba shared printer
    path = /var/spool/samba
    read only = No
    guest ok = Yes
    printable = Yes
    printer name = HP750
    use client driver = yes
    oplocks = No
    share modes = No

    It seems like it's not only the ArchLinux workstation that displays the norwegian letters wrong. The only machine that shows this correc is the machine that created the file/catalogue.
    It seems like the windows 2000 displays the cataloge created by windows XP just fine.

  • Problem with date and time preference

    hi there,
    i set my date and time and the time support yesterday and then i click the lock button to prevent further chance and last night i shut down my iMac, open it again in the morning the lock open back up and the timezone support change.
    i redo that again and restart my iMac the same thing happen. is this a problem with my software or everyone have this problem?
    any idea what should i do?
    thanks in advance
    regards AL

    Having the same problem, & am running Parallels (which I haven't used for some time) not boot camp. I tick the box labeled "Set time automatically" & lock the "click the lock to make changes". When I reboot, the Lock is unlocked and the "set time...." is unticked. Any ideas. Cheers.

  • Cp-1251 utf-8 converting: problems with russian letters

    Hello every one!
    I have faced a major problem in cp-1251 to utf8 string convertion (in Windows):
    String result2 = new String(result.getBytes("utf8"), Charset.forName("cp-1251"));Everything works fine, but there is a problem with russian letter &#1048; (10th letter in the alphabeth).
    cp-1251 byte code of &#1048; is 200
    The right byte code for &#1048; in utf-8 is : 208 152, but I recieve the byte code 208 63 for &#1048;. So there must be some mistake.
    So, when i try to read this string, i face a problem with wrong utf-8 charset...
    I tried this code on Debian, everything works fine.
    I will be glad if you are capable of helping me.
    Thank you.
    Edited by: smikler on Sep 27, 2009 10:25 AM
    Edited by: smikler on Sep 27, 2009 10:27 AM

    Your code makes no sense.
    You're taking a String and asking for it to be turned into a stream of bytes according to the UTF-8 character encoding. And then you're giving these bytes back and asking to have them interpreted back into characters using the CP-1251 character encoding. This is bound to fail, because the bytes aren't in CP-1251 - they're in UTF-8 as you requested.
    The very concept of changing the character encoding of a String is meaningless. Strings in Java are represented in Unicode. It's only when you convert to and from bytes (using the two methods you've used) that you worry about encoding/decoding.
    So, why not describe what you're actually trying to achieve?

  • Acrobat 9.2 display problem with arbitrary letters

    I am running Acrobat Pro 9.2 on Mac OS X (10.6.2).  I have several PDFs which display properly in Preview. When opened with Acrobat 9.2, the letters o and X appear not to be displayed. It appears that they are present but drawn in the page color (white).   This bizarre problem just started, but I'm not sure whether an upgrade of OS/Acrobat caused it.  Again, Preview displays them just fine.
    Anyone else seeing anything similar?
    Thanks.

    Most likely they are coloured white and set to 'overprint', although it seems odd to be only those characters...  Not knowing what you have I can only guess. Preview does not honour the overprint attribute which makes white appear transparent in Acrobat.

  • Problem with uppercasing �

    Hi,
    I've found the following problem:
    When you run:
    System.out.println(Character.toUpperCase('�'));
    System.out.println("�".toUpperCase());
    System.out.println("�UN".toUpperCase());
    System.out.println("Help Plea�e".toUpperCase());
    with sdk 1.3 you get:


    �UN
    HELP PLEASSE
    with sdk 1.4.1 you get:

    SS
    SSUN
    HELP PLEASSE
    Independently from wich sdk flavor you like the best , the semantics of this whole thing sounds rahter strange to me:
    A string, converted to uppercase can have more characters than it originally had.
    so for example y load a field my DB,I upercase it and when I update it might no longer fit because it might have even doblued it's size in the uppercasing.
    Makind a geep analysys fo my problem, and with some help, I endded in this URL
    http://german.about.com/library/anfang/blanfang_abc.htm
    German for begginers:
    There it reads:
    � :
    Lower case only. Replaces "ss" in some words. Not used in Swiss German.
    gro� (big, great), die Stra�e (street)
    BUT: das Wasser (water), dass (that), muss (must)
    I don�t understand why:
    If the letter has no uppercase does java try to invent that SS.
    Furthermore, it is clear that:
    Letter � could replace "ss" in some words but
    who said that ss could replace � ????
    Guys at sun:
    a -> b does not imply
    b -> a
    I would be grateful if you could help me to understand what is going on with this.
    Thank you very much
    Santiago P�rez Ghiglia
    [email protected]

    JoachimSauer:
    Thank you so much for your answer, it was really clear.
    I would really fancy a 'SS' character. Although I can understand that upercasing a string could have a different meaning than uppercasing it's characters individually, because in a string the characters are in a context and whatsoever... I don't still like the idea of the growing on uppercase Strings. Just imagine what would you do if you wanted to unicode like Upercase a string in C, the string (char array) would take up more space so you could be forced to move the your string elsewhere (in memory) so that you cculd make it fit.
    Anyway, your answer was of great help. I�ll probably start learning German.
    Santiago
    PD=So it's the "guys at Unicode" 's door the one I have to knock, =)

  • Problem with ceartain letters

    After installing FF 4 certain letters in this Italian web site: http://www.martinus.it/visione.htm appear as question marks.
    Being the web master I wonder if Is this the case for everybody who use the FF 4 ?
    What causes the problem?
    R

    The problem seems to have solved it self
    Now it function !!!
    So no answer is needed.
    R

  • Problem with uppercase character in batch number

    Hi all,
    I have the following case:
    Currently we have a batch number v10047 (character "v" in lowercase), we can see this batch in MMBE, MB52.
    We want to transfer posting this batch, but when entering its number, SAP auto change the "v" from lowercase to uppercase, then it says "Batch number does not exist"!
    I cannot display this batch in MSC3N either due to the same problem.
    How can we prevent SAP from changing lowercase to uppercase?
    Many thanks,
    Duc.

    Hi Duc.,
    Lowercase batches cannot be created by a dialog posting. If you check
    the domain CHARG using SE11 you can see that the flag for 'lowercase'
    is not set. This means that the batch entered will always be converted
    to uppercase when this batch is entered on a screen.
    The possibility is that you've transferred the batch info from IDOC or BAPI?
    You may refer to note [104626|https://websmp201.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=104626] and remove the batch stock using IDOC or BAPI again.
    Thanks and regards,
    Polly

  • Problems with Mobile Me System Preferences after installing Snow Leopard

    I installed Snow Leopard yesterday, and noticed that my calendar was no longer syncing between my mac and my iphone. I opened the system preferences/mobile me pane and my .mac account came up, but when I tried to hit the "sync" pane it just froze. It did this repeatedly. I trashed the system preferences file and tried again, with the same result.
    Any ideas? I'd really like my calendars to continue syncing across devices.

    I had same issue, this cured it for me...
    - Open MobileMe in System Preferences
    - Click Advanced
    - Click Reset Sync Data
    - Select Calendar from drop down menu/pop up list
    - (In my case I changed the arrow, to copy all calendar events from my mac to mobileme)
    This resets the data in mobile me.
    After this the sync function worked as normal & my iPhone syncing was ok as well...
    Hope this helps

  • Problems with user account / losing preferences

    Hallo!
    Recently, my iBook is doing strange things. Suddenly, all my preferences (bookmarks, themes, wallpaper etc) disappear, i don´t know why. I have to reinstall everything, and then (some time later) it all starts from the beginning (disappearing).
    I think this might be due to the presence of other user accounts (i bought the iBook from a friend), but it is impossible to delete them.
    And there is my question: what about a complete re-installing of the iBook? I have the 2 installing CDs, that should be ok, shouldn´t it?
    As i am totally new on apple, i need your opinion:
    what will disappear when re-installing the iBook? Will NeoOffice still be there?
    Is it - in your point of view - a good idea to do that reinstalling?
    Thank you very much for your advice!

    Hi there, It sounds like the account/shortname/home folder was renamed at one time.
    Have you tried making a new Admin account yet in System Preferences>Accounts?
    I have the 2 installing CDs, that should be ok, shouldn´t it?
    If they are the right ones, that may do it, what are the 2z-***-***-A numbers on them and the info on your iBook...
    At the Apple Icon at top left>About this Mac.
    Then click on More Info>Hardware and report this upto *but not including the Serial#*...
    Hardware Overview:
    Machine Name: Power Mac G5 Quad
    Machine Model: PowerMac11,2
    CPU Type: PowerPC G5 (1.1)
    Number Of CPUs: 4
    CPU Speed: 2.5 GHz
    L2 Cache (per CPU): 1 MB
    Memory: 10 GB
    Bus Speed: 1.25 GHz
    Boot ROM Version: 5.2.7f1
    what will disappear when re-installing the iBook? Will NeoOffice still be there?
    With an Erase & Install, everything will be erased and you start out with only what the iBook originally came with. An Archive & Install will just replace the OS files.

  • I have problem with polish letters after thunderbird reinstalation. Font seems do not see it ..

    I can write mails in my native hovewer when i receive feedback Instead of Polish letters i see "chinesse bushes"

    What version are you using?
    What is selected at View | Text Encoding?

  • Problems with Spaces and System Preferences

    Hello all. I previously had setup my spaces so that when I opened certain apps, they would open in specific spaces (ex. Safari opened in upper left space, system preferences opened in lower right space etc.). I had spaces setup so that there were 9 spaces. Now somehow my spaces got reset so that I have only 4. Whenever I open system preferences, or even open spaces preferences to change it, it opens, but does not appear, and when I hit the spaces button, there it is, overlapping my spaces, but I cannot click on it to change the settings, only choose a space to go to.
    Heres what it looks like when i hit the spaces button:
    http://img408.imageshack.us/img408/5122/picture1bw3.png

    Hey guys i found a fix to this but its basically using System preferences blind, and toggling on and off the radio buttons for Expose and Spaces.
    So to really understand my jumble of words to make you understand my weird train of thought. Its The Master & the Grasshopper Lesson on _'Believing without Seeing.'_
    Young Apple Seed (aka Grasshopper), Just because one can not see what one is doing, does not mean one is doing nothing. This just means that the Mime is miming a mime action to a blind person.
    So if you wish to not be the blind mad and the mime, do as it is written, and as you think. For one who goes down a path they choose they will sure be the Mime. And if you are, then you need an Mime EGO check.
    _TO GET WHAT YOU CAN'T SEE_
    1. If you don't already have SP (System Preferences) running then you will need to start the Application named SP.
    2. When in SP, click on View | *Expose and Spaces*
    +(If your here and saying how the bleep do I do this step. Then you need to Bleepity make sure that right next to the Apple Icon in the top left corner reads+ *System Preferences*, +Mr/Mrs/Ms Mime.)+
    3. Press Tab +(ONE TIME)+
    4. Press *Right --> Arrow* +(ONE TIME)+
    *5. Press ⌘L +(ONE TIME)+
    *6. Press ⌘[ +(ONE TIME)+
    7. Press Tab
    8. Press Tab
    9. Press *Space Bar*
    +(Now if you were doing each step while reading it on the screen then right after you did that last step like magic it appears.)+ The space bar toggled Enable or Disable Check box.
    * These steps really should not be here but I noticed a bug that would make my steps not work correctly if these were not done. Usually when you press tab once in a 2 part option menu for SP its tabbed. And usually when you press the arrow key to go to the next tab, usually the focus is still on the tab for the next tab. But it doesn't and that isn't only on my system, its on many others i tried it on. So you Bug mashers or fixers this has been duped on several other systems that range from non-Intel, PowerMac, PowerPC, iMac, even non apple macs. but focus disappears and even if you pressed tab or the arrow keys nothing would happen and trust me you would be doing my steps over and over and then post something either on my profile that i'm a bleepity bleep bleep or something positive. But i'd like the positive comments, but hey if you want to leave me bleepity bleep bleep bleep bleep bleeps? Then i have one thing to say to you "BLEEP you!!"

Maybe you are looking for

  • DAC: failed tasks during ETL for financial apps

    I am trying  my first ETL on OBIA 7.9.6.4 i'm using  Oracle EBS 12.1.1 as source system. the ETL completes 200+ tasks successfully ,but it fails the rest of them first task that fails is : SDE_ORA_GL_AR_REV_LinkageInformation_Extract Error message: A

  • Map network drive from windows 98 to server 2008 R2

    Guys I have some old Windows 98 systems these 98 systems are attached to pieces of equipment on the warehouse floor. So with that said there is no way to upgrade them. I would like to map a network drive from these 98 systems to a 2008 R2 file server

  • Image Shifted

    I have created a background image and loaded in dreamweaver 8 which I used to create my website. The background appeared fine and looks great. Now, I have a swf flash file I need to place at the center of the page. First, I added a layer where I want

  • Error when trying to export GPO Backup Folder

     Setting Default file format has following errors: Rule Save Word files as has error: The string is missing with ID: '               ' in setting 'Default file format'. I am trying to export a Group Policy using Microsoft Security Compliance Manager

  • I want to know i can use fingerprin​t in hp elitebook 6930p.

    hi i want to know i can use fingerprint in hp elitebook 6930p. I install all driver but, when i click to use it open on internet