Currency format not working

Hi, I am using the following but currency appends a weird character in front

                <div class="bg-white p-3">
                        <ejs-grid id="Grid" dataSource="@Model.BookingList" allowPaging="true" allowFiltering="true" allowSorting="true">
                            <e-grid-filterSettings type="Menu"></e-grid-filterSettings>
                            <e-grid-pagesettings pageSize="5"></e-grid-pagesettings>
                            <e-grid-columns>
                                <e-grid-column field="Id" headerText="ID" textAlign="Right"></e-grid-column>
                                <e-grid-column field="Name" headerText="Name" textAlign="Right"></e-grid-column>
                                <e-grid-column field="Email" headerText="Email"></e-grid-column>
                                <e-grid-column field="PhoneNumber" headerText="Phone" ></e-grid-column>
                                <e-grid-column field="CheckIn" headerText="Check In" customFormat="@(new { type ="date", format="MM/dd/yyyy" })"></e-grid-column>
                                <e-grid-column field="Room.Name" headerText="Room"></e-grid-column>
                                <e-grid-column field="OrderTotal" headerText="Total" format="C2"></e-grid-column>
                                <e-grid-column field="Id" headerText="" Template="<a rel='nofollow' rel='nofollow' href='Details?orderId=${Id}' class='btn btn-primary'><i class='fas fa-list'></i></a>"></e-grid-column>
                            </e-grid-columns>
                        </ejs-grid>

                </div>


Output total shows as Â$440.00

1 Reply

RS Rajapandiyan Settu Syncfusion Team April 17, 2020 01:11 PM UTC

Hi Bhrugen, 

Greetings from syncfusion support. 
 
Query : I am using the following but currency appends a weird character in front. Output total shows as Â$440.00 
 
We have created a sample with your code and currency formatting is working perfectly at our end. refer the sample for more information. 
 
 
We suspect that, this is not reproduced by syncfusion Controls. The HTML page did not encode characters in that correctly. Please refer the below solution provided in the stackoverflow. 
 
                             https://forums.oscommerce.com/topic/382491-currency-showing-%C3%A2-in-front-of-price/ 

If you still face the same problem, please get back to us with issue reproduced sample to validate further on this. 

Regards, 
Rajapandiyan S 


Loader.
Up arrow icon