Note that there are some explanatory texts on larger screens.

plurals
  1. POUnicode characters does not displaying correctly in my website when using javascript
    primarykey
    data
    text
    <p>I have created a Google custom search engine. My site address is <a href="http://search.richinfosite.com" rel="nofollow">http://search.richinfosite.com</a>. I have hosted it in weebly.com. All works fine except unicode characters. The logic of my search engine is when someone searches, the Google result will be displayed and the title and search box text will be changed to the search term. </p> <p>I used JavaScript for this. But if I search other than English language the text will be displayed like some special characters. For example if I search the Tamil text "தமிழ்" it will be displayed as "%E0%AE%A4%E0%AE%AE%E0%AE%BF%E0%AE%B4%E0%AF%8D". What is the solution for that? I want the text to be appeared as real language. </p> <p>I included the meta tag for utf-8. This helped me to display unicode text(included while editing the page in weebly website builder) in the page. But the Unicode text that is displayed using JavaScript does not work. Please take a look at my site and try to search in Unicode character and you will understand the problem or you go to this address <a href="http://search.richinfosite.com/index.html?q=%E0%AE%A4%E0%AE%AE%E0%AE%BF%E0%AE%B4%E0%AF%8D" rel="nofollow">http://search.richinfosite.com/index.html?q=%E0%AE%A4%E0%AE%AE%E0%AE%BF%E0%AE%B4%E0%AF%8D</a></p> <h2>My javascript to change the title of the page.</h2> <p><code>if (query != null) { document.title = query+" | Web Search"; }</code></p> <p>(query is the value entered in the search box)</p> <h2>Javascript to change the search box text.</h2> <p><code>if(query != null) document.getElementById("search-text").value = query;</code></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload