Open jonjieviduya opened 4 days ago
You might need to add Order Amount
to the raw columns.
Or you can use the render
option via js to handle the money formatting.
Oh, the context was on export ~~ I will have to review this one. I think the formatting should be handled on the Excel cell format level for this to work.
There are new features released via https://github.com/yajra/laravel-datatables-buttons/pull/186 and https://github.com/yajra/laravel-datatables-buttons/pull/187. That might help in your case.
@yajra yes it is for export. Using these links, how can I format the currency? BTW it is working when you open it using google sheet. The issue only occurs when opening in ms excel.
There are new features released via yajra/laravel-datatables-buttons#186 and yajra/laravel-datatables-buttons#187. That might help in your case.
Try using exportFormat('₱#,##0.00')
. This is how I usually check Excel.
Summary of problem or feature request
When viewing the exported file, the Philippine Peso (₱) currency shows strange characters:
â,±
. I tried both₱
and the₱
but both of these are not working and still show the same strange characters.Code snippet of problem
System details