Can I use for my AMP pages for Google meta charset and page encoding NOT in utf8; but windows-1251 for example?

I can't find any info in the specification about it.

  • Why would you want to use a character set other than UTF-8 for AMP? – Stephen Ostermiller Feb 8 at 21:19
  • Because all my content is win1251, it is a big portal 20 y. old :) – Seobmen Feb 8 at 21:49
  • UTF-8 should support Cyrillic characters. I have not found any AMP documentation that suggests that you can use anything other than UTF-8. Could you possibly re-encode the text as the page is compiled? – tshimkus Feb 8 at 21:59

You can set the charset to anything you want:

<meta charset="utf-8">

However, know that users using a different character set will see a lot of garbled characters in your pages. If your website is 20 years old I would say it is time for a facelift and a few tweaks. You can find online utf-8 encoders that will make it easy for you.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.