Skip to content

Commit

Permalink
Fix a bug that Worksheet#export_as_file fails if the content contains…
Browse files Browse the repository at this point in the history
… multi-byte characters. #132
  • Loading branch information
gimite committed Mar 17, 2015
1 parent 715518a commit 36db62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/google_drive/worksheet.rb
Expand Up @@ -68,7 +68,7 @@ def export_as_string()
# Exports the worksheet to +path+ in CSV format.
def export_as_file(path)
data = export_as_string()
open(path, "w:utf-8"){ |f| f.write(data) }
open(path, "wb"){ |f| f.write(data) }
end

# gid of the worksheet.
Expand Down

0 comments on commit 36db62f

Please sign in to comment.