<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aryzae</author_name>
  <author_url>https://blog.hatena.ne.jp/aryzae/</author_url>
  <blog_title>面白きことは良きことなり</blog_title>
  <blog_url>https://aryzae.hatenablog.com/</blog_url>
  <categories>
    <anon>備忘録</anon>
    <anon>Xcode</anon>
    <anon>iOS</anon>
  </categories>
  <description>経緯 APIを叩く際にランダムに生成しな内容をBASE64化してQueryにつけて送信しようとしていたが、5割ぐらいのエラーになっていた。 調査した結果、+がPercent Encodingされていないためだったが、なぜこんなことが起きたのか…。 便利なURLComponentsの罠 qiita.com この記事でURLComponentsという便利なものがある！自前でPercent EncodingしてQuery作らなくていいんだ！とうっきうきで使っていたわけだが、+はPercent Encodingしてくれない。(ちなみに+をPercent Encodingすると%2Bになる) stack…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faryzae.hatenablog.com%2Fentry%2F2018%2F03%2F19%2F234918&quot; title=&quot;URLComponentsは、`+`をPercent Encodingしてくれない - 面白きことは良きことなり&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-03-19 23:49:18</published>
  <title>URLComponentsは、`+`をPercent Encodingしてくれない</title>
  <type>rich</type>
  <url>https://aryzae.hatenablog.com/entry/2018/03/19/234918</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
