Create UTF-8 CSV in BASH script

user-pic
Vote 0 Votes

echo -n $'\xEF\xBB\xBF' > test.csv
echo "測試1,測試2,123" >> test.csv
echo "第二行" >> test.csv

for PHP, ref. UTF-8 CSV for Excel

Leave a comment

About this Entry

This page contains a single entry by Pank published on January 20, 2011 9:00 AM.

ASUS ES5120 was the previous entry in this blog.

Unix Utilities Collection for Win32 2.0 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives