jQWidgets Forums

jQuery UI Widgets Forums Grid £ as a currency symbol

This topic contains 4 replies, has 2 voices, and was last updated by  simpzoid 8 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • £ as a currency symbol #87280

    simpzoid
    Participant

    Dear All,

    I have the following bits of code, which gives me a black triangle with a question mark rather than £. If I change the £ for $ or pretty much anything else I get $ or pretty much anything else in the grid. I’d be very grateful for any thoughts on why £ doesn’t work.

    var localizationobj = {};
    localizationobj.currencysymbol = ‘£’;

    …..

    $(“#jqxgrid”).jqxGrid({

    localization: localizationobj,

    },

    Regards,
    Scott

    £ as a currency symbol #87293

    Ivo Zhulev
    Participant

    Hi simpzoid,

    Take a look at that example:

     var data = [{price: 2.25}, {price: 4.50}, {price: 6.20}];
     var source = {
         localdata: data,
         datafields: [ {
             name: 'price',
             type: 'number'
         }],
         datatype: 'array'
     };
     var dataAdapter = new $.jqx.dataAdapter(source);
     $("#jqxgrid").jqxGrid({
         width: 150,
         source: dataAdapter,
         autoheight: true,
         localization: { currencysymbol : "£" }, 
         columns: [ {
             text: 'Preis',
             datafield: 'price',
             cellsformat: "c2",
             cellsalign: 'right'
         }]
     });

    It shows it normally.

    Best Regards,
    Ivo

    jQWidgets Team
    http://www.jqwidgets.com/

    £ as a currency symbol #87298

    simpzoid
    Participant

    Ivo,

    Thanks for the help but using your code I still get, e.g:

    �2.25

    Regards,
    Scott

    £ as a currency symbol #87315

    Ivo Zhulev
    Participant

    Hi simpzoid,

    Check that fiddle .
    Does you still see it like � ?
    If yes, the problem probably comes from your PC(localization settings etc.).

    Best Regards,
    Ivo

    jQWidgets Team
    http://www.jqwidgets.com/

    £ as a currency symbol #87333

    simpzoid
    Participant

    Ivo,

    As a result of your help I have discovered that jqwidget works fine and that the problem is in the server configuration. The server is mangling the £ sign into something unintelligible.

    Thanks again,
    Scott

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.