OnPage Issues with UTF-8 and ISO-8859-1
-
Hi guys,
I hope somebody can help me figure this out. On one of my sites I set the charset to UTF-8 in the content-type meta-tag. The file itself is also UTF-8. If I type german special chars like ä, ö, ß and the like they get displayed as a tilted square with a questionmark inside.
If I change the charset to iso-8859-1 they are getting displayed properly in the browser but services like twitter are still having the issues and stop "importing" content once they reach one of those specialchars.
I would like to avoid having to htmlencode all on-page content, so my preference would be using UTF-8..
You can see it in action when you visit this URL for example: http://www.skgbickenbach.de/aktive/1b/artikel/40-minuten-fußball-reichen-nicht_1045?charset=utf-8
Remove the ?charset parameter and the charset it set to iso-8859-1.
Hope somebody has an answer or can push me into the right direction.
Thanks in advance and have a great day all.
Jan
-
Hi Jan,
I'm following up on old questions. Did Theo's answer solve your problem for you?
-
Wow good answer!
-
Getting a web page to display your content as TRUE utf-8 requires everything to be set at the utf-8 encoding. 'Everything' includes: your database, your database tables, your database fields, your connection from php to your database, you header as set by php, your header as set by html, your content itself etc.
The following resources were extremely helpful to me when I was switching to utf-8 (which is by far the better encoding over ISO):
http://www.phpwact.org/php/i18n/utf-8
http://www.phpwact.org/php/i18n/utf-8/mysql
Bonus tip: make sure your content and files are saved as utf-8 without BOM (Byte Order Mark), this will save you lots of trouble later!
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Move from 4 Domains to 1
Hey Moz Community We are running 4 domains at the moment. www.rapturecamps.com www.surfcamp.travel www.surfcampbali.com www.surfcampinportugal.com We started of our business with 1. after a view years in business we got the option to buy the other 3 domains which have ranked quite well with certain keywords. As its quite allot of work maintaining all these websites with two languages, we where thinking of actually moving number 2, 3 ,4 all to number 1. All domains receive still some good rankings as well as daily hits. So we kinda like would like to keep the SEO Juice. Therefore we where researching for some time what would be the best practice todo so. For us there are two possible options We go trough all posts/pages on the domain 2,3,4 and copy the content over to domain 1. After thats done we create 301 redirects on the domains 2,3,4 linking them back to domain 1 posts/pages. We do do so by manually adding the 301's into the htaccess file, so we are able to delete the Wordpress installations. Our we just copy the Pages/Posts from the domains 2,3,4 to the domain 1 and then kill the 2,3,4 domains afterwords, and let google index these Pages/Posts on the new domain. This way we think we would loose the whole SEO Juice from the old domains. The reason we are asking this one here, we have been reading that this method could lead to red flags at google if we redirect to much Pages/Post back to Domain 1. Hopefully someone here can help us answer that question.
Technical SEO | | 5Gates0 -
All rankings lost from page 1 to 5+
Hello, all my keywords are dropped on Google from 1. st page to page 5+. Is these Penguin 3.0 problem? What to do now? Register new domain and move website? I loose 1 year:( Details: PA: 53 DA:46 (backlinks from 110 domains), domain old: 3 years I didnt recived any message in Google webmaster. Sorry for my english. Please help me! Thank you!
Technical SEO | | cerar0 -
E-commerce solution and subdomain issues
Hello All,
Technical SEO | | CherieP
In light of Wil Reynold's closing keynote at Portland's Searchfest, I thought I might try posting here to get some advice. We run a family business on the side and we're looking at starting to use volusion.com for our e-commerce solution. The catch is we currently have a wordpress site summitmining.com running on thesis with great SEO. Ranking #1 & #2 for our highest trafficked terms. Ideally, I'd like Summitmining.com to direct to the Volusion store and then summitmining.com/blog to go to our wordpress installation BUT since the volusion site will be hosted with the company and they will not host our wordpress installation we'd have to use a subdomain instead of a subdirectory which I understand will be bad for SEO. Does anyone have any recommendation on how to set this up without totally screwing up our ranking OR any recommendations of an easy to use shopping cart (I've worked on a magento site before and it's too complex for us) that wouldn't require a separate or subdomain? Thank you so much!
-Cherie Prochaska
503-816-3557
[email protected]
@cherieprochaska0 -
Aspx filters causing duplicate content issues
A client has a url which is duplicated by filters on the page, for example: - http://www.example.co.uk/Home/example.aspx is duplicated by http://www.example.co.uk/Home/example.aspx?filter=3 The client is moving to a new website later this year and is using an out-of-date Kentico CMS which would need some development doing to it in order to enable implementation of rel canonical tags in the header, I don't have access to the server and they have to pay through the nose everytime they want the slightest thing altering. I am trying to resolve this duplicate content issue though and am wondering what is the best way to resolve it in the short term. The client is happy to remove the filter links from the page but that still leaves the filter urls in Google. I am concerned that a 301 redirect will cause a loop and don't understand the behaviour of this type of code enough. I hope this makes sense, any advice appreciated.
Technical SEO | | travelinnovations0 -
Duplicate Content issue
I have been asked to review an old website to an identify opportunities for increasing search engine traffic. Whilst reviewing the site I came across a strange loop. On each page there is a link to printer friendly version: http://www.websitename.co.uk/index.php?pageid=7&printfriendly=yes That page also has a link to a printer friendly version http://www.websitename.co.uk/index.php?pageid=7&printfriendly=yes&printfriendly=yes and so on and so on....... Some of these pages are being included in Google's index. I appreciate that this can't be a good thing, however, I am not 100% sure as to the extent to which it is a bad thing and the priority that should be given to getting it sorted. Just wandering what views people have on the issues this may cause?
Technical SEO | | CPLDistribution0 -
Two company websites - should 1 be nofollow?
We are an automotive dealership that is required to keep a manufacturer appointed website. It's pretty terrible so we are having a new site developed in addition to that. We plan on transferring our current domain name to the new site but I am not sure what to do with the older, less useful site. Should I try to have both sites appear in the search results to capture more traffic? Or is that inefficient? Should I make the new site no follow?
Technical SEO | | kylesuss0 -
Onpage linking
On my homepage, I currently link to about 40 internal pages. I'm considering altering the internal linking structure to have 50-100 links on the 2nd level pages. If I was to do this, I'd only need 8 homepage links. Do you think the 8 pages linked from the homepage would go up in the SERPs as the pagerank would be less diluted? I've heard so many mixed views on this. Be interested to see what people here think. Thanks, Pete
Technical SEO | | PeterM220 -
Still no pagerank after 1 year
i am workin on a site www.progazon.ca, it's been up for almost a year now 11 months and still no pagerank. Is there something i can do. does it change something. thx
Technical SEO | | martinLachapelle0