Polish localization problem

hi,
i format values from the db using format(double) from DecimalFormat. this works fine. now when the form is submitted, i need first to validate and then to store in the db. i am facing 2 problems:
1. value 1234.56 in polish in localized form is 1 234,56. the thousand separator is a whitespace (or so i think). however, if i do:
String str = "1 234.56"; double val = nf.parse(valStr).doubleValue(); then i get 1.0 as my result. the wierd thing is, if i do run sun's example code in DecimalFormat class, copy the result of format from console and paste it in my code, the parse function works fine. this makes me believe the space might be some other character.
2. if i try the parse the string 1234.56fgh in locale 'en', i get a result of 1234.56 and doesnt throw an exception. clearly this poses problems for validation.
any input on this is greatly appreciated, as i havent got a clue about this.
thanks in advance
abhaya

This particular issue has been raised prviously in both forum and bug reports. See this bug report for problems related to user entry (the only real problem, as far as I can see):
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4510618

Similar Messages

  • Polish encoding problem

    Hi,
    I use MySQL db in my JSF application. I display data from database in the form's components. All my data added to db. have encoding 8859-2 (latin2). The page encoding: UTF-8 or 8859-2 makes no difference in my case. Everything works fine - polish characters are displayed correctly. The problem arised when I tried to write to db some data (event the same data displayed in the form - without change) with polish characters for instance in JSF <h:inputTextarea>. When I save data with polish characters, it looks like the correct content were written to db - Strings containing text are proper being passed to executeQuery.Unfortunately when I read it back, polish characters are changed to '?'. It looks like there is something wrong with my db, but I am asking to be sure if that is the problem. It's strange to me, cause string taken from db and string written to db seams to be correct in the frist time. But reading again shows '?' characters problem.
    I have tried to do 3 selects -by executeQuery (to set the proper encoding) from application side before reading/writing any data:
    "SET NAMES latin2";
    "SET CHARACTER SET latin2";
    "SET COLLATION_CONNECTION='latin2_general_ci'";
    It works with console (I use it always before adding db's content) but not with my app:/ - still the same problem.
    Does anybody know from what the problem comes?
    Thanks for reply,
    Tom

    So you have the numbers in a varchar2 column ?
    SQL> create table ap_invoice_distributions_all
      2  as
      3  select '177.96' attribute2, 'TAX' line_type_lookup_code from dual union all
      4  select '870.80', 'TAX' from dual union all
      5  select null, 'TAX' from dual union all
      6  select '1560.00', 'TAX' from dual
      7  /
    Tabel is aangemaakt.
    SQL> SELECT SUM( TO_NUMBER(REPLACE ( NVL(ATTRIBUTE2,'0'), ',' , '.')) )
      2  FROM AP_INVOICE_DISTRIBUTIONS_ALL
      3  WHERE LINE_TYPE_LOOKUP_CODE = 'TAX'
      4  /
    SELECT SUM( TO_NUMBER(REPLACE ( NVL(ATTRIBUTE2,'0'), ',' , '.')) )
    FOUT in regel 1:
    .ORA-01722: invalid number
    SQL> select to_number(attribute2,'9999D00','nls_numeric_characters=.,')
      2    from ap_invoice_distributions_all
      3   where line_type_lookup_code = 'TAX'
      4  /
    TO_NUMBER(ATTRIBUTE2,'9999D00','NLS_NUMERIC_CHARACTERS=.,')
                                                         177,96
                                                          870,8
                                                           1560
    4 rijen zijn geselecteerd.
    SQL> select to_char(sum(to_number(attribute2,'9999D00','nls_numeric_characters=.,')),'9999D00','nls_numeric_characters=.,') attribute2
      2    from ap_invoice_distributions_all
      3   where line_type_lookup_code = 'TAX'
      4  /
    ATTRIBUT
    2608.76
    1 rij is geselecteerd.
    SQL> select to_char(sum(to_number(attribute2,'9999D00','nls_numeric_characters=.,')),'9999D00','nls_numeric_characters=,.') attribute2
      2    from ap_invoice_distributions_all
      3   where line_type_lookup_code = 'TAX'
      4  /
    ATTRIBUT
    2608,76
    1 rij is geselecteerd.Regards,
    Rob.

  • [SOLVED] Reinstalling Arch on pure systemd - Localization problem.

    Hi
    I have accident regarding today filesystem update, so I decide to install arch again on pure systemd from the begining.
    I am now on freshly installed xfce  and i just noticed my userspace is totally not localized, despite proper localization steps.
    /etc/locale.gen
    pl_PL.UTF-8 UTF-8
    # cat /etc/vconsole.conf
    KEYMAP=pl
    FONT=lat2-16
    CONSOLEFONT=lat2a-16
    FONT_MAP=8859-2
    # locale -a
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_COLLATE to default locale: No such file or directory
    C
    POSIX
    pl_PL.utf8
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    LANG=pl_PL.utf8@euro
    LC_CTYPE="pl_PL.utf8@euro"
    LC_NUMERIC="pl_PL.utf8@euro"
    LC_TIME="pl_PL.utf8@euro"
    LC_COLLATE="pl_PL.utf8@euro"
    LC_MONETARY="pl_PL.utf8@euro"
    LC_MESSAGES=C
    LC_PAPER="pl_PL.utf8@euro"
    LC_NAME="pl_PL.utf8@euro"
    LC_ADDRESS="pl_PL.utf8@euro"
    LC_TELEPHONE="pl_PL.utf8@euro"
    LC_MEASUREMENT="pl_PL.utf8@euro"
    LC_IDENTIFICATION="pl_PL.utf8@euro"
    LC_ALL=
    What i should do?
    Last edited by utops (2012-10-06 11:46:37)

    utops wrote:
    karol wrote:
    Create ~/.config/locale.conf
    $ cat $HOME/.config/locale.conf
    LANG="pl_PL.UTF-8"
    and reboot.
    I know nothing about xfce, but can you tell me what part of the console stuff is in English? Can you copy / paste an example?
    $HOME config don't work either.
    From grub to login and from using CLI apps like nano and wifi-menu,mc,no polish language there.
    Everything is in english...
    Like system sudenly goes blind and don't see what i put in to configs.
    Everything worked well on my old pretty instalation i already miss that times.
    EDIT:
    Sudenly it worked again.
    Dunno what happened,just working again...
    Ok,so thx for tips guys,have a good evening...
    see my previous post.
    please mark the thread as solved.

  • Localization problem

    I am running Oracle 8.0.5.1 on Linux Web-enabled by Perl
    DBI::DBD and Apache.
    The dadabase has been created in CL8MSWIN1251 charset and
    contains records in Russian.
    With appropiate enviroment variables (ORACLE_HOME, ORA_NLS33 and
    NLS_LANG) set to the required values in perl scripts everything
    works snagless and Russian characters appear when accessing the
    database from a Web browser.
    The same is true when accessing the database via TELNET.
    But I cannot configure the Developer 6.0 components (like Forms,
    Reports etc.) to show the Russian characters at all - they are
    all being replaced by overturned question marks.
    So how am I to configure the Developer to recognize the charset
    (CL8MSWIN1251) used when creating the database?
    Please, help!
    Greg
    null

    I know how to add my location to Skyhook, and I would like to know how to tell Apple to add my location so that it works. As I said, it used to work, and still work in many places but in my home location. I have look at my Linksys router and found no setup for Location. I have connected my iMac directly to the Cable modem and activated Airport to share Internet without success either. Then the Localization in Date and Hour Time zone does find me either. For this I use only Internet through my ISP. A friend withe the same ISP has the same problem with his new iMac 27 in.
    I hope that Apple will find a way to solve this problem.
    Thanks for your help.
    Jean-Luc

  • Language Localization Problem on Dock

    I recently noticed that my trash icon on the dock has been changed to spanish language localization. I get 'Papelera' when I mouse over it. It is only on the administrative account. No other menus or icons are in spanish. I checked the international language settings in Preferences and they appear correct. I cannot figure out how to change it back to English. Help appreciated. Thanks.

    unable to fix this problem along with several other nagging problems with OS X Leopard and had to reinstall to correct it.

  • Export ePUB from inDesign CS6 - polish fonts problem

    I have to make ePUB with polish fonts.
    I create a simple one page document in inDesign CS6 and export it to ePUB. All fonts are embedded.
    When I check it in Adobe Digital Editions (ADE) there is problem with polish fonts (ż, ł). ADE doesn't read it correctly. Other readers do it in right way.
    Is it a problem with inDesign or ADE?

    The ADE provides a preview, and nothing more than that. Actual viewers have other, more, or less capabilities -- some don't support embedded fonts, others do but with limitations, etc.
    ComrelPL wrote:
    .. that's why bookstores need ePUB to be compatibile with this ADE.
    E-Pub is still in its infancy. There is no general "e-pub" standard that *all* viewers are compatible with, other than the very lowest common denominator (which may very well mean "plain text").

  • IPhone SDK 2.2: Localization problem?

    Can anybody replicate that Localizeable.strings no longer work?
    Set up:
    - SDK 2.2 final installed.
    - Localizeable.strings in de.lproj and en.lproj.
    - Compiled Debug for OS 2.1.
    - Works perfectly fine for both languages on Simulator.
    - Does not work on 3G device.
    Can anybody duplicate problems with Localizeable.strings? Any hints?

    Can anyone confirm that this is the problem, and that this solves the problem? I haven't had a chance to try it myself. I saw on another forum, which was in Russian so I'm not sure I understood it all correctly, that there was an issue where the SDK wants the files to now be called Localizable.strings.<some number>. So I'm wondering if that is just an incorrect item, or if there may perhaps be multiple solutions?

  • Resorce manger localization problem

    hi
          i am making an application using flex sdk3.2 and using localization for multilanguage support in my projects.earlier i am using six languages in my project.And every thing is working smoothly and perfect.but now i have to use only two language.so i tried to change the  complier arguments from this:
                                   -locale=en,nl,de,fr,en_US,fr_FR -source-path=locale/{locale} -allow-source-path-overlap=true
                                     to this:
                                     -locale=en,nl -source-path=locale/{locale} -allow-source-path-overlap=true
    but now it gives 45 errors like  Unable to resolve resource bundle "formatters".
                                                           Unable to resolve resource bundle "Controls".
                                                           Unable to resolve resource bundle "Containers".
    Can anybody explain me.
    Thanks in advance
      Vineet osho

    hi thanks for your reply.
    yes bundles is in C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\locale here all the folder with en,nl,de,fr,en_US,fr_FR names created.each contains all swc files.
    this project is working fine when i give -locale=en,nl,de,fr,en_US,fr_FR -source-path=locale/{locale} -allow-source-path-overlap=true
    in copiler argument string.
    but when i give -locale=en,nl -source-path=locale/{locale} -allow-source-path-overlap=true
    it creates problem start giving error as described above.
    Thanks And regards
         Vineet Osho

  • Jasperreport localization problem in WL 9.2.3

    Hello, all...I'm really baffled by this. When I deploy my webapp in Tomcat 5.5.27 my localization in jasperreport is working. But when I deploy it in WL9.2.3 (which is used in test environment and production), those special fonts for Thailand, Bangladesh & Cambodians won't render completely in PDF. I mean the paragraphs are like truncated. Can anybody help me out? This is supposed to be in production a long time ago if it weren't for this setback. Thanks.
    information that might help:
    - The iReport that compiled the jrxml files is version 2.0.3.
    - JDK150_12 is used to build the WAR (I used what's bundled in BEA WL).
    - All the special fonts are already in the classpath - needless to say.

    Mark White wrote:
    Presumable you have the default queue okay as in "Then, explicitly create the weblogic.kernel.Default execute queue from the Administration Console and reboot the server"?Well, the problem is precisely that the administration console doesn't show the option +"Queue"+ in the General tab, so it's a little complicated task :)
    Mark White wrote:
    and the server was down when editing the config.xml?I tried to create the queues definition directly in the config.xml file with no luck: both servers (managed and administration) were stopped, and no resident java processes were running at the moment. The config.xml rolled back again to its older configuration after starting the managed server, so we're starting to think that it's a configuration problem that prevents manual modifications of the configuration file (even with the servers stopped). Any ideas concerning this?
    Adding insult to injury: we have a Linux that shows the Queues option without problems following the same steps that we followed in Windows XP.
    Thanks again for your time. It's much appreciated!
    Jaime.
    Edited by: jaime.alba on May 13, 2009 9:00 AM

  • JES5 Language Localize Problem in Web Interface

    I hope this is the correct forum to ask this question...
    Here's the problem:
    I wanted to make a Dutch version of the Sun Java Communication Express, so I followed all the steps you have to do (create folders, translate all the necessary files, edit .properties files, ... etc). I've also restarted the server after uploading.
    It seems that everything has worked out well, because when I go to my web interface, I can log in. I change the language to Dutch, and logged out.
    Now here's the weird part. When I log in again now, my "Mail" tab stays in English. But when i go to "Calendar", "Options", etc. the interface is show in dutch, as i translated them.
    I've found out that the redirecting url might be wrong, cause the url that show in my browser is: (ip)/uwc/webmail/en/mail.html?lang=en&laurel=on&cal=1
    It doesn't seem normal to me that, in the url, there is still "en" instead of "nl" for dutch. When I change the url manually, that's the only way to show the dutch version of my mail tab.
    So propably the problem is that the url ist being editted after choosing dutch as language(when I choose French, it DOES edit the url to "fr").
    Has anyone got an idea how to fix this?
    Kind regards,
    Andrew

    Shane,
    as I have been updating our own documentation I have also honored your request to update the publically available [ http://msg.wikidoc.info/index.php?title=Add_New_Language_ME Messaging Server wiki].
    For future reference the above link may be more up-to-date then this text.
    How do I add a new language to the Messenger Express interface that is not one of the languages localized by Sun?
    Because Sun does not provide additional localizations beyond those already supplied, you need to do your own translation.
    Start by copying the original files of one of the supported languages to the new language you need to support. In this case I translate from English (language code: en) to Dutch (language code: nl).
    Your Messenger Express may be installed in a different directory, change paths accordingly.
    <tt>
    cp -r /opt/SUNWmsgsr/config/html/en /opt/SUNWmsgsr/config/html/nl
    </tt>
    Translate the file <tt>/opt/SUNWmsgsr/config/html/nl/i18n.js</tt>. It contains most of natural language used in webmail. The files <tt>help.htm</tt> and <tt>help2.htm</tt> contain a lot of help text. I cheated and replaced those files with less extensive useage instructions or just leave the original english and hope the customers don't complain too much.
    For each language already supported and the new one edit the file <tt>i18n.js</tt> and add a localized name for the Dutch language and add Dutch to the supported/available languages in the options page.
    <tt>
    /opt/SUNWmsgsr/config/html/en/i18n.js
    i18n['en']='English'
    *'i18n['nl']='Dutch'*
    function i18n_preferredlanguagelist()
    var lang_list = new Array('en', *'nl',* 'es')
    /opt/SUNWmsgsr/config/html/es/i18n.js
    i18n['en']='Ingl�s'
    *'i18n['nl']='Holand�s'*
    function i18n_preferredlanguagelist()
    var lang_list = new Array('en', *'nl',* 'es')
    /opt/SUNWmsgsr/config/html/nl/i18n.js
    i18n['en']='Engels'
    *'i18n['nl']='Nederlands'*
    function i18n_preferredlanguagelist()
    var lang_list = new Array('en', *'nl',* 'es')
    </tt>
    The Messenger Express web interface has built in spelling check. The dictionary files come from the ancient/traditional unix ispell and are
    available for download from: http://ficus-www.cs.ucla.edu/geoff/ispell-dictionaries.html
    Download the Dutch affix rule file and the actual dictionary files, and use the buildhash command to make a hash file Messenger Express can use. When
    copying this hash files be warned that you can't copy it from x64 to sparc (big/little endian) architectures.
    <tt>wget ftp://ftp.tue.nl/pub/tex/GB95/ispell-dutch96/dutch96.lat</tt> (dictionary)
    <tt>wget ftp://ftp.tue.nl/pub/tex/GB95/ispell-dutch96/dutch96.aff</tt> (affix file for use with above dictionary)
    <tt>
    /opt/SUNWmsgsr/lib/buildhash dutch96.lat dutch96.aff /opt/SUNWmsgsr/lib/nl.hash
    </tt>
    with a new dictionary in the correct place it should be detected automatically after a restart of Messenger Express.
    Use configutil to make Messenger Express aware of the new language:
    <tt>
    /opt/SUNWmsgsr/sbin/configutil -o gen.installedlanguages
    /opt/SUNWmsgsr/sbin/configutil -o local.supportedlanguages
    </tt>
    returns for instance the language strings: <tt>en,es</tt>. Add Dutch:
    <tt>
    /opt/SUNWmsgsr/sbin/configutil -o gen.installedlanguages -v "en,es,nl"
    /opt/SUNWmsgsr/sbin/configutil -o local.supportedlanguages -v "[nl,en,es]"
    </tt>
    Make the new Dutch language the default language for this site:
    <tt>
    /opt/SUNWmsgsr/sbin/configutil -o gen.sitelanguage -v nl
    </tt>
    Restart Messenger Express (web interface) to make the changes effective.
    <tt>
    /opt/SUNWmsgsr/sbin/stop-msg
    /opt/SUNWmsgsr/sbin/start-msg
    </tt>

  • Views labels localization problem

    Hello,
    I've some workspace views and presentations that contains several labels coming out from project variables.
    These vars are correctly setted up with 2 languages but when I deploy the project, the language remains English. In addiction some of the labels, when modified, remains as they were.
    After each deploy we do an engine restart. We waited enough time to let the directory refresh itself. The option to update custom views and presentation is switched on.
    What else is missing?
    Please any suggestion is welcome!
    Thaks a lot
    G

    I have the same problem once and was because when you deploy as the variables already exist then you map the variables that come from the exported file to those variables and then even you localize them in studio it is not reflected in enterprise. so you have to localize them in enterprise.
    HTH

  • [JS CS3 Mac&Pc] Enabling automatic localization problem

    Hi all,
    I’m trying to enable automatic localization in my script, as described in ‘Localization in ScriptUI Objects’ section of ‘JavaScript Tools Guide’ for CS3 (pages 87-88).
    I try the first example and it works as expected:
    $.locale = "fr";
    w = new Window('dialog', 'Test');
    btnText = { en: "Yes", de: "Ja", fr: "Oui", ru: "Да" };
    b1 = w.add ( "button", undefined, localize(btnText) );
    w.show();
    Then I read the following:
    >If you do not need variable replacement, you can use automatic localization. To turn on automatic
    >localization, set the global value:
    >$.localization=true
    I really don’t need variable replacement in my script and don’t want to type localize() around every string over and over again, because there are countless numbers of them.
    So automatic localization is just what the doctor ordered. I try the second example, but instead of the localized string I get ‘Object’.
    $.locale = "fr";
    $.localize = true;
    w = new Window('dialog', 'Test');
    btnText = { en: "Yes", de: "Ja", fr: "Oui", ru: "Да" };
    b1 = w.add ( "button", undefined, btnText );
    w.show();
    Any1 have any ideas?
    Kasyan

    Kasyan,
    You need this:
    >b1 = w.add ( "button", undefined, String (btnText));
    It's indeed not what you's espect from the description in the guide.
    Peter

  • Polish language problem while displaying in PDF

    Hi
    I have generated an OTF Spool in my system using Smartform in Polish Language.
    The spool is good.
    However when i try to convert the spool  to PDF using RSTXPDFT4 , i get certain unrecognisable characters such as " ] " 
    can any one tell what reason  would be for this as the spool is good but on conversion to PDF it goes like this.
    Thanks
    Ram

    Hi,
    Check this sap Note 999712. This might help you.

  • PackageMaker localization problem

    Hi,
    I am creating .pkg for my application using PackageMaker.
    I am providing support for 7 langauage English, French, German, Italian, Korean, Russian,Spanish.
    In Edit Interface, i am using abbrevation : en, fr, de, it, ko, ru and es fro these langauages.
    But when i am trying to install the application, in License page, when i change the language in drop down menu, except for Russian and Korean, for all language buttons(Print, Save, Go Back, Continue) does not change to that language.
    Does any one know how to solve this problem?
    Thanks

    Hi,
    I am creating .pkg for my application using PackageMaker.
    I am providing support for 7 langauage English, French, German, Italian, Korean, Russian,Spanish.
    In Edit Interface, i am using abbrevation : en, fr, de, it, ko, ru and es fro these langauages.
    But when i am trying to install the application, in License page, when i change the language in drop down menu, except for Russian and Korean, for all language buttons(Print, Save, Go Back, Continue) does not change to that language.
    Does any one know how to solve this problem?
    Thanks

  • ADF Faces: localization problem

    Hi,
    after migrating from EA17 to EA19 the localization of my ADF Faces application doesn't work properly on IE anymore. If English is included in the list of languages the application will be English no matter if German is at a higher priority.
    Only when I delete English and make German the only language in my browse will the application be German

    Well, for some reason this phenomenon doesn't occur anymore. I made quite some changes to my application since, so maybe it was my mistake. Sorry.
    In any case the language list I meant was the browser's language setting, both on IE and Firefox

Maybe you are looking for

  • Issues with WebForm performance

    Hi, We had migrated a new application from UAT to PROD and we encounter webform performance issues with the following actions.. After login, the first form you open it is always slow. After this you can switch from one form to another without a delay

  • How do I stop calendar event notifications?

    I have an iPhone 5 with iOS 6. I restored it from a backup of my iPhone 4S and with it calendars from some Major League Baseball teams. I subscribed to these calendars so that if I was to travel to one of these cities I could select the calendar and

  • Complicated preloader problem (movie within a movie)

    I am using Flash 8 with AS 2.0 I have a 2 scene movie scene 1 is preloader scene 2 is main movie scene 2 has a MC on the mains stage in frame 1. This MC loads another .swf in frame 40 using hte loadmovie command I want my preloader to determine when

  • How to connect WCEM with a TPV payment gateway ?

    Hi , I need connect my b2c application with tpv , is possible ?? how do I be it ?? thanks you.

  • How can i open my locked iphone ??

    hello, i have an iphone 4s that's locked by find my iphone app. Every time i want to open it i need the activation code by putting an old ID that doesn't exist anymore. Yesterday i tried to open my ID but it seems it doesn't exist so i created the sa