Announcement

Collapse
No announcement yet.

Special Characters and files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Special Characters and files

    I need to figure out if this is acceptable:

    Code:
     <mvt:assign name="l.settings:feed_description" value="glosub( l.settings:feed_description, '&reg;', '®' )" />
    The substitution works. However, when loading the file in a real text editor or browser, there is an extra character and I am having no success finding out why. The replacement REG comes in as:

    Code:
    ®
    The &Acirc; is consistent throughout the file for any character I am doing a glosub for. Anyone know why and will it affect data feeds such as Google Shopping?

    Thanks,

    Scott


    What help do you need today!
    Interactive Design Solutions http://www.southbound.com
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    My T-shirt Collection is mostly MivaCon T-shirts!!
    Competitive Rates, Popular Modules, and Integrations:
    Product Copy | AutoBaskets | Waitlist Integration| Wholesale Integration

    #2
    I believe it has to do with the encoding.... something like this is needed (don't recall the specifics unfortunately)... <meta charset="utf-8">
    William Gilligan - Orange Marmalade, Inc.
    www.OrangeMarmaladeinc.com

    Comment


      #3
      Thanks Bill.

      I did see that sort of solution elsewhere. We're actually not worrying about the browser. This feed file won't be loaded in a browser AFIK. I did make sure my editor loads a file detecting utf-8.

      The main concern is the Google shopping feed.

      Scott


      What help do you need today!
      Interactive Design Solutions http://www.southbound.com
      MivaMerchant Business Partner | Certified MivaMerchant Web Developer
      My T-shirt Collection is mostly MivaCon T-shirts!!
      Competitive Rates, Popular Modules, and Integrations:
      Product Copy | AutoBaskets | Waitlist Integration| Wholesale Integration

      Comment


        #4
        Google shopping feed will make a best guess for the character set if it is not declared in the XML tag.

        It looks like you are using Unicode ISO-8859-1, so change assignment to:

        Code:
         <mvt:assign name="l.settings:feed_description" value="glosub( l.settings:feed_description, '&reg;', 'U+00AE' )" />

        And on the Google Feed declare:

        Code:
        <?xml version="1.0" encoding="ISO-8859-1"?>
        
        // rest of feed
        http://www.alphabetsigns.com/

        Comment

        Working...
        X