<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>posturan</author_name>
  <author_url>https://blog.hatena.ne.jp/posturan/</author_url>
  <blog_title>Oboe吹きプログラマの黙示録</blog_title>
  <blog_url>https://oboe2uran.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>昔は、 Apache commons の codec とか使うのを見かけたけど、そんなことせずにURＬエンコードは、、、Java の URLEncoder では、、、 「*」→ %2a 「-」→ %2d 「_」→ %5f の3つの記号が変換されず、半角スペースは「+」になる。 String str =&quot;*-_a b c&quot;; String encodeStr = URLEncoder.encode(str, &quot;UTF-8&quot;) .replace(&quot;+&quot;, &quot;%20&quot;) .replace(&quot;*&quot;, &quot;%2a&quot;) .replace(&quot;-&quot;, &quot;%2d&quot;) .replace(&quot;_&quot;, &quot;%5f&quot;); こ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2018%2F03%2F18%2F140735&quot; title=&quot;URLエンコードの取り扱いメモ - Oboe吹きプログラマの黙示録&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-18 14:07:35</published>
  <title>URLエンコードの取り扱いメモ</title>
  <type>rich</type>
  <url>https://oboe2uran.hatenablog.com/entry/2018/03/18/140735</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
