Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website Responsive Web Design and Testing Website Testing

Zachary Jenkins
Zachary Jenkins
8,750 Points

google api fonts

how do you fix the google fonts notification error(when validating code) in regards to using escape characters???

thanks much

2 Answers

You need to url encode the pipe character, | (vertical bar)

Replace the vertical bar characters with %7C

Zachary Jenkins
Zachary Jenkins
8,750 Points

hey thanks guys...i didn't realize you had to encode the ascii hex value. :]

James Barnett
James Barnett
39,199 Points

Zachary Jenkins -

Any character besides a-z, A-Z, 0-9,-,.,_, and ~ needs to be encoded.

source:Section 2.3 of RFC 3986 the standard which defines the syntax for a URL

James Barnett
James Barnett
39,199 Points

The | character is invalid in a URL, so to encode the | character change it to %7c

source: http://stackoverflow.com/a/22469221/1756132s