Forum Moderators: open

Message Too Old, No Replies

UTF-8 Encoding I have No clue?

want to add google search to my site!

         

HappyMomAnna

5:42 pm on Sep 27, 2005 (gmt 0)

10+ Year Member



I wanted to add the Google Search to my site. There are two options one is to add just the google search the other will also search my site....

The instructions for adding my site to the searches says:

Note: If your page is not encoded as UTF-8, you should change the value of both fields to match your page's encoding.

I have NO CLUE? is there something that I can add to my pages that makes them UTF-8 or what would I chaange the value of both fields to match my encoding? Frankly I do not understand what encoding I have used--if any?

And if I have some kind of encoding--is this UTF-8 better then whatever I do have....and should I change something on all my pages to fit this 'better' encoding?

?

Thanks to anyone who is able to help!
Anna

Don_Hoagie

7:08 pm on Sep 27, 2005 (gmt 0)

10+ Year Member



Duh, UTF-8 is TOTALLY the latest thing!

No really, UTF-8 is a type of character encoding... an issue most of us non-expert HTMLers don't ever bother to figure out. It's in your meta tags, i.e.:

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

I've never seen the code of this Google stuff, but it sounds as if there are two areas in the code where it calls a character set... personally I'd say that since you evidently did not make a conscious decision to choose a certain encoding, it won't hurt you to just switch the meta tag in your page's <head> to UTF-8, a la the bit of code I just provided. Good luck. Perhaps someone will come along with a more detailed explanation of character encoding.

adb64

7:45 pm on Sep 27, 2005 (gmt 0)

10+ Year Member



Anna,

If you have no idea what it is all about, your page probably isn't UTF-8 encoded. When you, for all characters outside the ascii range 32 to 255, use entity encoding, e.g. write the euro character as &euro;, you don't use UTF-8 but probably ISO-8859-1. In that case change the string to:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

For more info on UTF-8 see [en.wikipedia.org...]

Arjan

krumel

6:53 pm on Oct 3, 2005 (gmt 0)

10+ Year Member



Hey, hope is not too late.
Please read this: What is Unicode? [unicode.org].
Hope it helps you.