Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6543411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:20:37+00:00 2026-05-25T11:20:37+00:00

Been happily saving things to my XML files via a web form that is

  • 0

Been happily saving things to my XML files via a web form that is pared by PHP and the SimpleDOM.php

I need to save items that have English pricing in them so I need the English pound sign. However when I do this 2 things happen:

  1. it returns the saved price as £

  2. if I then save it again without any other changes the SimpleDom parser then barfs and it removes any other content inthe XML file beyond the english pound sign.

The top line in my XML file looks like

<?xml version="1.0" encoding="ISO-8859-1"?>

Inside the XML file the £ is being saved as

&amp;Acirc;&amp;pound;

As far as I can tell iso-8859-1 should have the £ sign in it, so very confused why this Acirc is coming into it….

I saw on another thread someone said try using 8859-15 but that didnt make any difference.

Any ideas folks?

Cheers
Jas
(complete nube to all this encoding stuff)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:20:37+00:00Added an answer on May 25, 2026 at 11:20 am

    The unicode code point for £ is U+00A3. In the UTF-8 encoding it is 0xC2 0xA3. Now, in ISO-8859-1 0xC2 is Å, and 0xA3 is £. So, somewhere in the flow, what you enter becomes UTF-8 which is interpreted as ISO-8859-1. Have you looked at how the “form” encodes the data before reaching your PHP code.

    And, besides, what is this SimpleDOM doing w.r.t. entities? &Acirc; and &pound; are not valid XML entities without a declaration. Does SimpleDOM add the declarations?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been happily using the error suppression operator on my PHP dev setup. But
So I've been happily using subversion to regularly commit files in my stack of
We have a windows service that has been happily running in production for over
I had been happily coding along on a decent sized solution (just over 13k
I came across this recently, up until now I have been happily overriding the
Been using PHP/MySQL for a little while now, and I'm wondering if there are
I have been happily using HgSubversion for awhile and today I forgot to add
To think ... there I have been happily programming in an MFC riddled environment
I've been very happily using PredicateBuilder but until now have only used it for
I've been using XPath with Selenium quite happily and even using getEval with a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.