<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mtiit</author_name>
  <author_url>https://blog.hatena.ne.jp/mtiit/</author_url>
  <blog_title>(O+P)ut</blog_title>
  <blog_url>https://www.mtioutput.com/</blog_url>
  <categories>
    <anon>UNIX</anon>
    <anon>UNIX-Linux</anon>
  </categories>
  <description>事象 以下のような日本語URLを利用するも # curl -L &quot;https://script.google.com/macros/s/xx/exec?text='こんにちは'&amp;source=ja&amp;target=en&quot;結果が文字化けして返ってくる。 {&quot;code&quot;:200,&quot;text&quot;:&quot;'����������������'&quot;} 環境情報 curl 7.52.1 (x86_64-pc-linux-gnu) 原因/解決策 CURLコマンドで送付するテキストが正しくエンコードされていない。 日本語URLのエンコードに関する補足は以下参照。 よって「こんにちは」を以下にエンコードすることで %E3%…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mtioutput.com%2Fentry%2Fcurl-japan-googleapi&quot; title=&quot;【GoogleAPI】curlで日本語URLを入力すると結果が文字化けするエラーの解消法 - (O+P)ut&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>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mtiit/20190708/20190708105146.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-01 17:40:02</published>
  <title>【GoogleAPI】curlで日本語URLを入力すると結果が文字化けするエラーの解消法</title>
  <type>rich</type>
  <url>https://www.mtioutput.com/entry/curl-japan-googleapi</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
