Permalink
Browse files

Create .htaccess with mimetype and charset

Fixes encoding problems in Google Calendar.
  • Loading branch information...
1 parent 55f4b68 commit 959fb0d1a57454d9a148aaaa68481b5e413c668c @scy committed Feb 26, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 bulk.sh
View
@@ -25,6 +25,7 @@ fi
mkdir -p "$outdir"
: >"$mapping"
+echo "AddType 'text/calendar; charset=UTF-8' ics" >"$outdir/.htaccess"
echo 'SELECT DISTINCT username FROM days;' | sqlite3 "$dbfile" | while read -r employee; do
outfile="$(echo "$secret$employee" | sha1sum | cut -b 1-40).ics"

0 comments on commit 959fb0d

Please sign in to comment.