UTF-8 sites and AdSense

Google AdSense supports several languages, but did you know that you can still use it with some unsupported languages (Hebrew for example)?

Well, first you will have to get your account application approved (not always easy, especially when your site is in an unsupported language). You can always get your account approved for a site written in one of the supported languages and then apply the ads on one of your other sites.

Now, the tricky part is that ads will only show up if your pages are encoded in UTF-8.

In order to convert your pages into UTF-8 you’ll only need to open them up in Windows Notepad and then choose File ->> Save As , and select from the encoding drop down list “UTF-8” instead of the default “ANSI”.

Declare the page as UTF-8 encoded by specifying:


in the head section of the page.
At this stage upload one of the converted pages to your server and take a look how it shows up. If it looks strange with unreadable characters it means you need to tell your server “serve your content as UTF-8”.

You can do this by inserting the following lines into your code (ASP version):

session.codepage=65001

response.charset=”utf-8″ (optional line, usually not necessary)

Look again at the pages.

Make sure that your browser’s encoding is set to “Unicode (UTF-8)”.

Now you just have to wait a few days (yes days) and hopefully ads will start showing up.

If you got ads showing up for you in an unsupported language please leave us a comment with the language of your site and a link.

If you have an Access database that needs to be converted into UTF-8 as well, read our guide on Converting Microsoft Access database tables in local encoding into UTF-8 encoding.

Leave a Reply

Your email address will not be published. Required fields are marked *