We have a website made in asp.net with razor engine. The razor engine encodes the content from source/database. So, for example, the letter ö becomes ö if I look at the source code in the browser.

Does it affect search engines in any way?

  • The best way is to look at what google sees and how it renders in the webmaster tools for your particular url. There are some questions around if javascript sliders for example are taken into account as they are built sometimes after the initial load and alt tags etc created slightly later..
    – landed
    Apr 26 '17 at 23:28
  • And what about this: <h1>&#119046; Violin Lesson</h1>. This should be bad right?
    – Ansjovis86
    Dec 31 '18 at 18:26

No. Such encoding is standard web development and plays no part in SEO. If anything, I would think it would help since it properly defines such letters—in which case I guess it might play a part in SEO—just to contradict myself.


Search engines know how to decode and index text with HTML entities. &#246; and ö both get indexed properly as the letter ö.

The only drawback to using HTML entities for such characters is the size of your source code. If you use a lot of such characters, it can significantly increase the byte count of your pages. Only a few characters need to be escaped to their html entities: < > & " '. Other characters can be written into the page verbatim as long as the character set allows it. If you use UTF-8, it supports all international characters natively without entity encoding.


There's an unnecessary fear among webmasters for using or not using certain elements on the website as it may affect their rankings. First of all, I would like to tell you that unless you are not trying to fool your users and working on delivering them the information they need in the easiest possible way, Google won't mind which HTML, CSS or PHP codes you are using.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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