OSDN Git Service

フォトライフへの投稿に成功。疲れた。WsseAtomConnectionの試行錯誤の結果。
[futonwriter/old_trunk.git] / HatenaDiaryClient / Models / Hatena / HatenaDiary.cs
index 00539ef..09c1044 100644 (file)
@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using System.Linq;
 using System.Net;
+using System.Text;
 using System.Text.RegularExpressions;
 using System.Xml.Linq;
 
@@ -44,6 +45,7 @@ namespace Azyobuzi.HatenaDiaryClient.Models.Hatena
             var reXml = WsseAtomConnection.Post(
                 string.Format("http://d.hatena.ne.jp/{0}/atom/blog", this.userName),
                 CreatePostEntryXml(title, content, updated),
+                Encoding.UTF8,
                 this.userName,
                 this.password);
             return new BlogEntry(reXml.Root)
@@ -66,6 +68,7 @@ namespace Azyobuzi.HatenaDiaryClient.Models.Hatena
             var reXml = WsseAtomConnection.Put(
                 string.Format("http://d.hatena.ne.jp/{0}/atom/blog/{1}", this.userName, dateId),
                 CreatePostEntryXml(title, content, updated),
+                Encoding.UTF8,
                 this.userName,
                 this.password);
             return new BlogEntry(reXml.Root)
@@ -98,6 +101,7 @@ namespace Azyobuzi.HatenaDiaryClient.Models.Hatena
             var reXml = WsseAtomConnection.Post(
                 string.Format("http://d.hatena.ne.jp/{0}/atom/draft", this.userName),
                 CreatePostEntryXml(title, content, updated),
+                Encoding.UTF8,
                 this.userName,
                 this.password);
             return new BlogEntry(reXml.Root)
@@ -120,6 +124,7 @@ namespace Azyobuzi.HatenaDiaryClient.Models.Hatena
             var reXml = WsseAtomConnection.Put(
                 string.Format("http://d.hatena.ne.jp/{0}/atom/draft/{1}", this.userName, id),
                 CreatePostEntryXml(title, content, updated),
+                Encoding.UTF8,
                 this.userName,
                 this.password);
             return new BlogEntry(reXml.Root)