You can customize the means by which an Oracle ATG Web Commerce server determines the encoding type of a specific document by sub-classing the EncodingTyper and overriding the getEncodingType() method. In the following example, this method is passed document paths relative to the document root.
 * Get the encoding to use for the specified path.
 * @return the encoding string, or null if there is no encoding
 * corresponding to the specified path
public String getEncodingType (String pPath)
  // Your code here.

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices