Page encoded as UTF-8

  • Thread starter Thread starter Jeremy
  • Start date Start date
J

Jeremy

I am trying to put the Google site search code into my site. Google's
instructions at http://www.google.com/searchcode.html#both say that if my
page is not encoded as UTF-8, I should change the value of the fields in
their code to match my page's encoding.

How do I know how whether my page is encoded as UTF-8, or as something else?

Many thanks for your help!
 
I found where the default page coding is defined. Mine is US/Western
European (Windows). If Google's code for UTF-8 is:

<!-- SiteSearch Google -->
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>

how should I replace the UTF-8 value? Should I just change it to:

<input type=hidden name=ie value=US/Western European (Windows)>

or is there a shorter form for this code?

Many thanks again
 
in the <head> section of the page you may see a meta tag similar to
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">

The page's encoding is whatever follows charset=
without the closing ".

If this meta tag is not present, leave the Google code as it is, and see if
there are any problems with the page rendering. Any problems will show up
with some characters displaying as a query mark (?).
Post back here if that happens, including a link to your published web site.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top