Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,892
    Plugin Contributions
    96

    Default Why are some calls to htmlentities hard-coded to UTF-8?

    I ran a Tools->Developers Tool Kit against my v1.5.1 catalog for htmlentities because I couldn't remember the format. In the result, I noticed that a couple of files (see below) have the third parameter hard-coded to UTF-8 instead of using CHARSET. What's the reason for this?

    /includes/functions/functions_general.php
    /includes/modules/payment/linkpoint_api.php
    /includes/modules/payment/paypal/paypal_functions.php
    /includes/modules/payment/paypaldp.php
    /includes/modules/payment/paypalwpp.php

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Why are some calls to htmlentities hard-coded to UTF-8?

    I've not looked at the exact cases you mention, but based on the filenames, I suspect that the reason might be related to the possibility that the external services to which the data is being submitted might only accept utf8?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Hard coded Contact Us page
    By mudpit in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 23 Nov 2012, 07:13 AM
  2. [Done 2.0] admin email salutation hard coded
    By torvista in forum Bug Reports
    Replies: 1
    Last Post: 15 May 2011, 12:33 PM
  3. categoryListBoxContents and hard-coded widths
    By dingraham in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Jan 2009, 10:46 PM
  4. URL Hard Coded causing SSL problems
    By ion5319 in forum General Questions
    Replies: 1
    Last Post: 18 Mar 2008, 06:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg