Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add charset=utf-8 #86

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/google_drive/worksheet.rb
Expand Up @@ -276,7 +276,7 @@ def save()

@session.request(
:put, edit_url, :data => xml,
:header => {"Content-Type" => "application/atom+xml", "If-Match" => "*"})
:header => {"Content-Type" => "application/atom+xml;charset=utf-8", "If-Match" => "*"})

@meta_modified = false
sent = true
Expand Down Expand Up @@ -332,7 +332,7 @@ def save()
EOS

batch_url = concat_url(@cells_feed_url, "/batch")
result = @session.request(:post, batch_url, :data => xml, :header => {"If-Match" => "*"})
result = @session.request(:post, batch_url, :data => xml, :header => {"Content-type" => "application/atom+xml;charset=utf-8", "If-Match" => "*"})
for entry in result.css("atom|entry")
interrupted = entry.css("batch|interrupted")[0]
if interrupted
Expand Down