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 6101109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:27:46+00:00 2026-05-23T13:27:46+00:00

As mentioned in the question, I am trying to generate an XML output( for

  • 0

As mentioned in the question, I am trying to generate an XML output( for an iPhone app) using PHP which is reading the data from MySQL’s text field.

Whenever there is a horizontal ellipsis character in the field… the XML is not generated properly.

I have tried a few ways to escape it like shown below, but none seems to work…

$row['detail'] = str_replace("&", "&", $row['detail']); 
$row['detail'] = str_replace("…", "&hellip;", $row['detail']); //<-- prob is here
$row['detail'] = str_replace("<", "&lt", $row['detail']); 
$row['detail'] = str_replace("\'", "&apos;", $row['detail']); 
$row['detail'] = str_replace(">", "&gt;", $row['detail']); 
$row['detail'] = str_replace("\"", "&quot;", $row['detail']); 

I have 2 questions basically,

  1. How do I handle horizontal ellipsis chracter?

  2. Are there more such characters which could cause such problem? Any reference to this list and its solution would be great!

Thanks

  • 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-23T13:27:47+00:00Added an answer on May 23, 2026 at 1:27 pm

    It is possible (and the recommended way) to use the literal, actual character in XML output. Don’t use HTML entity based workarounds – it’s unnecessary.

    The reason why it doesn’t work for you is probably because the ellipsis characters’s encoding doesn’t match the encoding of the XML file that is being generated.

    You just need to make sure they match. So for example, if you’re generating an UTF-8 XML file, the ellipsis character needs to be UTF-8 as well.

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

Sidebar

Related Questions

From the link ( which is mentioned in Question ) my question is that
I was trying to answer the question mentioned here by passing the reference to
In an answer to another question it was mentioned that passing XML as a
I am writing a data warehouse, using MySQL as the back-end. I need to
As mentioned in the question I am trying to utilize Solr's result grouping feature
Following on from this question , I'm using a simple ViewModel class to test
I'm working with a client's proprietary ASP.NET app, to which we added a PHP
I am trying to implement the same code that was mentioned in this question
I am trying to fetch the data from a google docs spreadsheet and I
As I mentioned in the question, I am trying to create a button and

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.