Skip to content

Instantly share code, notes, and snippets.

@jimyhuang
Created May 30, 2015 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimyhuang/894d699351dbba2e2018 to your computer and use it in GitHub Desktop.
Save jimyhuang/894d699351dbba2e2018 to your computer and use it in GitHub Desktop.
pet-tpe.php
<?php
`curl -s "http://data.taipei/opendata/datalist/apiAccess?scope=resourceAquire&rid=f4a75ba9-7721-4363-884d-c3820b0b917c&format=csv" -o pet-tpe.csv`;
$data = file_get_contents('pet-tpe.csv');
$data = iconv('BIG5', 'UTF-8', $data);
file_put_contents('pet-tpe.csv', $data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment