Hi there, I’m quite new to php and so far all the customized code I’ve done so far works. I’m basically using shortcodes for certain sections of the site that I want to be displayed on demand. The problem comes with the syntax since the site is in english, german and spanish. In both german and spanish, there are special characters that won’t show on the browser and I don’t know why. I checked around and apparently the php file must be coded in UTF-8 so I copied this line of code on top of my shortcode.php file but no change.
header(“Content-Type: text/html;charset=utf-8”);
I’ve asked on the support forum of my hosting (siteground) but they tell me it is not a problem of the server, so I don’t know if it would be somehow related to generatepress but I’m running out of options and I would like to know if there’s an easy solution to this.
Thank you for your time!
PS: I enclose a link where you can see where these characters are missing (scroll a little bit down to the “about the author” section and you’ll see strange characters among the text).