DevArticles.In

Tips, Tricks, References and Bookmarks

  • Home
  • Hindi to Unicode
  • About
  • Contact

Month: July 2013

PHP – Fix apostrophe(‘) converting to entity &#039 in csv export

Arvind KumarPHPLeave a Comment on PHP – Fix apostrophe(‘) converting to entity &#039 in csv export

1) If you read a .csv file for download: use \xEF\xBB\xBF after headers and just before you echo file data. For example: echo “\xEF\xBB\xBF”; // UTF-8 BOM readfile($file); 2) If you echo per line use htmlspecialchars_decode to covert single and…

Read More→

  • Useful Linux Commands
  • Disk Space Usage Commands
  • Top Directory Linux commands

Recent Posts

  • How to Remove Appends Attributes from Laravel Eloquent Model
  • How TO – Remove a Property from an Object in JavaScript
  • Array Destructuring With or Without List Function in PHP
  • Git Cannot open .git/FETCH_HEAD: Permission denied Solution
  • How to Check Laravel Version using CLI and File System

About Arvind

Arvind Thakur is a Full Stack Web Developer. He founded and runs a Software Development company by the name Inimist Technologies in Chandigarh, India. >> know more
Copyright © All rights reserved.
Blog Kit by WP Charms