Click this link: http://gwt.google.com/samples/Showcase/Showcase.html#!CwNumberFormat
Look for the ListBox in the top right corner of that page. Select "English - India" from that list. The page changes to: http://gwt.google.com/samples/Showcase/Showcase.html?locale=en_IN#!CwNumberFormat Note this addition to the URL, indicating that the locale is now English - India: ?locale=en_IN Now select "Currency" from the Pattern list. It now reports that the formatted currency value is rupees (Rs): Rs 31,415,926,535.90 I see that this will eventually be changing to a brand new symbol encoded as U+20B9 in Unicode 6.0: http://en.wikipedia.org/wiki/Indian_rupee_sign http://www.fileformat.info/info/unicode/char/20b9/browsertest.htm For one final test, select "Custom" from the Pattern list, then copy and paste this text into the text box below that list: ¤ #,##,##0 Change "Value to format" to 42. It now reports that the formatted value is: Rs 42 On Oct 26, 9:28 pm, PARAG <[email protected]> wrote: > Hi Jim, > > Thanks for looking into it. But still I have a problem, when in the > custom format I use just ¤ then in the output I am getting ? and when > I use ¤ then I get US$. Note that I do have UTF-8 encoding in the > browser. > > On Oct 27, 1:23 am, Chris Conroy <[email protected]> wrote: > > > > > Jim, > > > Thanks for pointing out this problem. jat has just committed a > > fix:http://code.google.com/p/google-web-toolkit/source/detail?r=9150 > > > On Tue, Oct 26, 2010 at 3:47 AM, Jim Douglas <[email protected]> wrote: > > > I think you're getting thrown by a small character encoding error on > > > that documentation page: > > > >http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g... > > > > The page will display correctly if you force it to display in UTF-8. > > > To do that, select something like View->Encoding->Unicode (UTF-8) from > > > your browser menu. > > > > The pattern character is exactly what you expect it to be. To see a > > > live sample, go here and select the Currency pattern from the list: > > > >http://gwt.google.com/samples/Showcase/Showcase.html#!CwNumberFormat > > > > On Oct 25, 11:51 pm, PARAG <[email protected]> wrote: > > > > Hi, > > > > > I want to use custom number format which may contain currency symbol > > > > for perticular locale. I found that with the > > > > com.google.gwt.i18n.client.NumberFormat class we can achieve this but > > > > the symbol for the currency is ¤ instead of ¤ in java. Note that the > > > > unicode used is same as that of the java (\u00A4). Any idea about > > > > this? > > > > > Thank you. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google Web Toolkit" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<google-web-toolkit%2Bunsubs > > > [email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
