W3C home > Mailing lists > Public > www-validator@w3.org > February 2018

Re: An Possible Error in need of fixing

From: Michael[tm] Smith <mike@w3.org>
Date: Sat, 24 Feb 2018 14:59:07 +0900
To: Dman 028 <bradley.dylan028@gmail.com>
Cc: "www-validator@w3.org <www-validator@w3.org>" <www-validator@w3.org>
Message-ID: <20180224055907.GE14452@sideshowbarker.net>
Dman 028 <bradley.dylan028@gmail.com>, 2018-02-14 17:59 -0500:
> Archived-At: <https://www.w3.org/mid/5a84bf61.022ac80a.6f038.0ee5@mx.google.com>
> 
>               It has come to my attention that the W3C Validator claims
> when you use Google Fonts that “Bad value
> https://fonts.googleapis.com/css?family=One|Two|Three+Four:400,700 for
> attribute href on element link: Illegal character in query: | is not
> allowed.” (Where One, Two, and Three Four are font names.) 
>               However, Google Fonts requires the use of the “|”
> character, to obtain several fonts at once.

Replace the “|” characters with “%7C”:

> https://fonts.googleapis.com/css?family=One%7CTwo%7CThree+Four:400,700

“|” characters aren’t allowed in URLs, so you need to percent-encode them as “%7C”

-- 
Michael[tm] Smith https://people.w3.org/mike

Received on Saturday, 24 February 2018 05:59:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:00:03 UTC