UTF-8 Compliant Requests
Posted by on 19 August 2013 01:24 PM

If you are experiencing issues with UTF-8 / UTF8 compliance with your requests, consider these steps:

1. The best way to address this, in regards to our service, is to UrlEncode the entire request (after &stwurl=) so that it is browser independent. That will fix the issue in the most reliable way.

2. As far as solving other, potential UTF-8 issues on your site, you may also want to include the following header in the HEAD portion of your web pages:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Note: Using other types of page encoding, such as windows-1252 or iso-8859-1 while attempting to request URLs containing UTF-8 characters may result in strange behavior. In extensive testing, we have found that browsers of the visitor to the page may truncate the request URL at the UTF-8 character, at which point an invalid request is made and an error shown on your web page. Since page encoding and end-user web browsers are involved, this applies only to the "Embedded" or "Simple Method" API. In order to ensure widespread compatibility and valid requests, we recommend using UTF-8 encoding and/or thoroughly test your web pages.

A malformed or truncated request may result in a HASH_MISMATCH error, but is generally blocked by our system. Learn more about PagePix's encoding support.

(0 vote(s))
Not helpful

Contact Us | PagePix Benefits | Learn More | STW Forums | Our Partners | Privacy Policy | Terms of Use

©2016 ShrinkTheWeb. All rights reserved. ShrinkTheWeb is a registered trademark of ShrinkTheWeb.