WordPress.org

Ready to get started?Download WordPress

Forums

Amazon Product in a Post Plugin
Amazon Product in a Post "Illegal Character Encoding& (2 posts)

  1. nickgibbens01a
    Member
    Posted 1 year ago #

    Warning: mb_convert_encoding() [function.mb-convert-encoding]: Illegal character encoding specified

    Getting this for lines 400, 412, 423

    Considering the lack of £ on the posts, in three areas, I'm assuming the £ symbol is causing the problem.

    Any solutions would be greatly appreciated. This has been created within a page, it actually works ok in a post. But Ideally I want to use it in a page.

    http://wordpress.org/extend/plugins/amazon-product-in-a-post-plugin/

    This thread has already been created but has been closed, so had to create a new one.

    Getting the issue here: http://www.gemmaclare.com/shop/health-wellbeing-and-lifestyle-products/ashtanga-yoga-short-forms-dvd/

  2. prophecy2040
    Member
    Plugin Author

    Posted 1 year ago #

    @nickgibbens01a -
    it sounds like this is an issue with character encoding. Sometimes this has to do with older php version or some other setting, but I cannot be sure as I don't have access to that information on your server.

    One thing you can try, is editing the plugin file aws_signed_request.php on about line 40, to parse the XML in the same encoding you have for your site (UTF-8).
    So it currently is:
    $parser = xml_parser_create ('ISO-8859-1');
    Change it to:
    $parser = xml_parser_create ('UTF-8');
    And see if that helps.

    We have been testing different options for the next update, and it might be that we change this to automatically be the same encoding specified in the bloginfo( 'charset' ) call - but not everyone uses this to actually output the encoding type to the browser or they have the DB_CHARSET defined differently in the wp-config file and use a conflicting type in the meta charset in the browser head (because they hard-coded it).

    Hopefully that will work for you.
    Regards,
    Don

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic