• Content coding on my website – a problem?

    Welcome to my website, the text displays normally in the view and in the editor. However, when I check the page source – it is strangely encoded there, I don’t know why.

    Once, in the source of the pages, they were saved in the same way as I write with Polish characters. Currently only in the source there is strange encoding of the text of entries – but on the page it is displayed normally for readers.

    What’s the matter, why are the coding in the source so different?

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator threadi

    (@threadi)

    What you call strange encoding is the HTML encoded spelling of special characters. This is of course output correctly in the browser, but it bloats the HTML code, especially in your case.

    Interestingly, this HTML coding only occurs when content is output via the plugin “quick-adsense-reloaded”. You obviously use shortcodes from this plugin that cause this output. Therefore, it is best to contact their support forum to clarify this: https://wordpress.org/plugins/quick-adsense-reloaded/

    Hey Danishsard, code like this “&#263”?

    These characters are converted to Unicode decimal format, so the above example is the letter ć. This is completly normal to see and you will notice it more often on sites using langages with accents. Non accented letters and numbers are not converted.

    So for the word “pamiętać” this is converted to “pamięta&#263

    Sometimes other characters such as blank spaces are converted too.

    Here is a comprensive list, the values on your site are in the decimal format and can be found in that column: https://en.wikipedia.org/wiki/List_of_Unicode_characters

    Thread Starter Danishsard

    (@danishsard)

    Yes, this encoding is linguistic. But what’s the point, once articles have normal words (those without encoded characters) just like I write with my Polish characters in the page code. And sometimes, just such as in this example, encoded characters.

    The browser displays them normally – but what’s the point that in this page code it looks once normal without transformation and once with these coding bushes?

    Moderator threadi

    (@threadi)

    As written by me this is caused by the above plugin through their shortcode usage.

    but what’s the point 

    If this is dues to a plugin like Threadi says, some valid reasons for encoding data passed through a plugin would be to prevent malicious code like cross site attacks, and like Threadi says, best to ask the plugin developer their reason, only they will know

    Thread Starter Danishsard

    (@danishsard)

    But how do you know it’s the ad plugin’s fault? After all, it only displays the advertisement and nothing else.

    How does it affect the text of the written post in the source of the page?

    But how do you know it’s the ad plugin’s fault? After all, it only displays the advertisement and nothing else.

    How does it affect the text of the written post in the source of the page?

    Because I don’t know if we understand each other well: “Mata masująca Medivon Vibra Cloud – to stosunkowo tani, ale dobrze wykonany produkt do masażów wibracyjnych całego ciała.”

    In my language, the text (and also visible in the browser source) “Mata masująca Medivon Vibra Cloud – to stosunkowo tani, ale dobrze wykonany produkt do masażów wibracyjnych całego ciała”

    Why is an ad plug-in supposed to do this, and how do you know it’s it?

    • This reply was modified 3 years, 2 months ago by Danishsard.

    I’m sorry, but it was not me that blamed a plugin. I do not work for WordPress, please do not suggest on other posts you were told on or by WordPress that a plugin was to blame. Good luck in solving your issue!

    Thread Starter Danishsard

    (@danishsard)

    The question was for Mr threadi. I myself do not understand what exactly is going on and why this plug is about. I already asked a question on their help related to this topic.

    Thread Starter Danishsard

    (@danishsard)

    @threadi

    Why do you think it’s the plugin’s fault? On some pages it is encoding and on others in a different category of entries it is not – and this plugin chya applies to every category the same.

    Please tell me why you think so?

    Moderator threadi

    (@threadi)

    Just try to disable the plugin for the shortcodes and then check the output. I suspect this is due to the comments in the source code that the plugin leaves there.

    Thread Starter Danishsard

    (@danishsard)

    @threadi Because see on my website there is a category other (INNE) – the same plugin supports them in the same way. And there in this category entries do not have these problems.

    So I can’t understand what is happening and why.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Content coding on my website – a problem?’ is closed to new replies.