Aisle7 :: UTF-8 Encoding
Implementation Guides

Search Documentation

UTF-8 Encoding
Online > Reference > UTF-8 Encoding

Aisle7 content uses the Unicode character set to support modern browser requirements, internationalization, and localization. All Aisle7 API responses and HTML content—including the HTML embedded in the XML-based response formats—are encoded using UTF-8.

 

Ensure Correct Character Display for All Browsers

When making a request to the Aisle7 API, your server must decode the response stream using UTF-8 encoding. This may happen by default, depending on your web application platform.

When displaying Aisle7 content, make sure the page specifies UTF-8 as the character encoding for the browser to use. There are two ways to accomplish this:

  • Via the Content-Type HTTP header 
    • Most modern web application platforms allow this to be set at the machine level, application level, or page level. Refer to your platform's documentation for instructions.
    • W3 Reference Guide
  • Via the HTML META tag
    • This can be set in the HTML of the page if setting the Content-Type HTTP header is not preferred.
    • W3 Reference Guide


Resolve Character Displays Issues Related to Encoding

If Aisle7 content displays graphical characters instead of entities such as apostrophes, em (long) dashes, superscript, and other non-ASCII characters, check for encoding conflicts:

  • Check that your server and the pages displaying Aisle7 content support UTF-8. For example, if your server is set up to decode responses in an ISO format, content may not display correctly even if UTF-8 is specified in the page HTML, or vice versa. 
  • Check that the page specifies UTF-8 as the only encoding format. For example, the page may not display correctly if ISO or another format is specified in the header and UTF-8 is specified at a lower level. In this case. Remove the overriding format using your web management tools or by editing the page source.