Article View: comp.lang.java.programmer
Article #635Re: i18n and numbers
From: Dirk Bosmans
Date: Fri, 26 May 2000 00:00
Date: Fri, 26 May 2000 00:00
41 lines
1902 bytes
1902 bytes
In that case you have to provide a custom-made instance of DecimalFormatSymbols to a DecimalFormat instance. I'm reacting to following parts of Frederik Hansen <frederik@roirex.dk>'s article in comp.lang.java.programmer on Wed, 24 May 2000 17:50:42 +02006 . Hi, . . Erik Peterson wrote: . > . > > The following test program does not convert numbers into correct chinse . > > numbers, . > > but still shows the 1,2,3,4 etc number. Should it not have been the . > > chinse . > > charaters for the numbers? Or this there another way around? . > . > Western numbers work just as well in Chinese as the native . > ones using characters do, especially for math and finance. Maybe . . I know, but in countries it may not (the Chinese was just an example) . . > Here's some Java code that will do the conversion. May still need . > some debugging but works. . . Thanks, but I need an more general way to do this, because our product . is ship to many diffrent countries. . . . Regards, . . Frederik Hansen Greetings, Dirk Bosmans http://users.belgacombusiness.net/arci/ - Applicet Framework: turns Applets into Applications - ArciMath BigDecimal: now with BigDecimalFormat
Technical Details
Message-ID:
<392f3b68.7463848@news.tijd.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<392B9315.B5D7CF66@roirex.dk> <392C0D3C.AEA53AC5@erols.com> <392BFA52.200D84B1@roirex.dk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9a23,73ef4cadaafd5728 X-Google-Attributes: gidf9a23,public X-Google-Thread: 10a146,73ef4cadaafd5728 X-Google-Attributes: gid10a146,public From: Dirk.Bosmans@tijd.com (Dirk Bosmans) Subject: Re: i18n and numbers Date: 2000/05/26 Message-ID: <392f3b68.7463848@news.tijd.com> X-Deja-AN: 627512449 Content-Transfer-Encoding: 7bit References: <392B9315.B5D7CF66@roirex.dk> <392C0D3C.AEA53AC5@erols.com> <392BFA52.200D84B1@roirex.dk> Organization: Customer of Online Internet Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.java.programmer,dk.edb.programmering.java