go41

Solution for Illegal character in query: not a URL code poin Bad value http://fonts.googleapis.com/css?family=

von Joern am 3. Mai. 2014 | Keine Kommentare

on validating my site with http://validator.w3.org/ I got the following error:

Code:

Bad value http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold|Droid+Serif:regular,italic,bold,bolditalic|Josefin+Sans+Std+Light for attribute href on element link: Illegal character in query: not a URL code point.

…talic,bold,bolditalic|Josefin+Sans+Std+Light' rel='stylesheet' type='text/css'>

This was some months ago still valid, and google also still suggests this code.

It is the pipe ‚|‘ character which is not encoded, so I replaced it with ‚c%7‘ (Url encode) to look like this:
Code:

<link href='http://fonts.googleapis.com/css?family=Droid+Sans:regular,boldc%7Droid+Serif:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'>

some sites suggest to replace the pipe ‚|‘ character with %7C which might also work, for me the succesful help was the c%7
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

Sorry, no posts matched your criteria.

Autor:

Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: