2017-11-15 8 views
0

GoogleトレンドをHTMLページに埋め込み、ö、ä、üなどのウムラウト文字を含むフレーズを渡したいと思います。
しかし、グラフは常に空になります。ウムラウト文字でGoogleトレンドを埋め込む方法

<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/925_RC01/embed_loader.js"></script> 
    <script type="text/javascript"> 
    trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"H%25C3%25B6rfigur","geo":"AT","time":"today 5-y"}],"category":0,"property":""}, {"exploreQuery":"geo=AT-4&q=sheep","guestPath":"https://trends.google.at:443/trends/embed/"}); 
    </script> 

H%25C3%25B6rfigur 

又は

H%C3%B6rfigur 

又は

H%F6rfigur 

私はこのコードを試み(Oで例):

Iは次のようにこれらの文字のために異なるエンコーディングを試し

お手伝いをしてください、私は今これのために働いています!

答えて

1

google.com/trends/exploreに行き、埋め込みダイアログからコピーしてみましたか?

https://trends.google.com/trends/explore?q=%C3%BCberのために、私は正常に動作し、次の埋め込みコード、取得:

<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/1280_RC06/embed_loader.js"></script> <script type="text/javascript"> trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"über","geo":"","time":"today 12-m"}],"category":0,"property":""}, {"exploreQuery":"q=%C3%BCber&date=today 12-m","guestPath":"https://trends.google.com:443/trends/embed/"}); </script> 

をそれはあなたのクエリが単に表示するための十分なデータを持っていないことは可能ですか?

関連する問題