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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:00:59+00:00 2026-05-26T14:00:59+00:00

Currently I have Javascript generating XML with an encoding set to UTF-8, and we’ve

  • 0

Currently I have Javascript generating XML with an encoding set to UTF-8, and we’ve run into a situation where we occasionally have some international characters present in the XML. For example:

<?xml version="1.0" encoding="UTF-8"?>
<example>
      <comments><![CDATA[Hola. Mi nombre es Pat. ¿Cómo puedo ayudarle?]]></comments>
</example>

Leaving the international characters like this gives us an encoding error when opened in a browser. Changing the XML encoding to the ISO standard, resolves the problem, but we are concerned that the recipients of the XML will be unable to read it properly if the encoding is different. Currently our solution is to esacpe these characters like so:

<?xml version="1.0" encoding="UTF-8"?>
<example>
    <comments><![CDATA[Hola. Mi nombre es Pat. &#191;C&#243;mo puedo ayudarle?]]></comments>
</example>

My questions is, is this the correct way to go about escaping these characters?

  • 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-26T14:01:00+00:00Added an answer on May 26, 2026 at 2:01 pm

    you write that Javascript is generating XML with an encoding set to UTF-8. How do you do this?

    Did you check that the resulting file is really UTF-8 encoded? I kind of doubt it – if it was you would not have any trouble, right? My guess is that you specify the encoding in the XML file as encoding=”UTF-8″ but the files encoding is not really utf-8.

    Best,
    Ronald

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

Sidebar

Related Questions

I currently have javascript/jquery to 'add and remove' steps from a set of instructions
I currently have a Javascript function that uses a string to reference an object
I am currently developing a site and have a need for a javascript-based carousel/slider
Currently, I don't really have a good method of debugging JavaScript in Internet Explorer and
I currently have speakers set up both in my office and in my living
I currently have the following javascript array: var stuffs = ['a', 'b']; I pass
using javascript google-maps api I currently have it setup to remove a maker I
I currently have a city that someone will enter into the system and I
I currently have 2 JavaScript variables in which I need to retrieve values from.
I currently have the following JavaScript/jQuery script that gets an external html page using

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.