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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:33:53+00:00 2026-05-14T06:33:53+00:00

I have an XML page with some elements in various languages – Arabic, English,

  • 0

I have an XML page with some elements in various languages – Arabic, English, Chinese, Japanese.. Which encoding format should I have to choose for that? If I try to render the XML with an XSL (using utf-8 or ISO-8859-6 or ISO-2022-JP), I get this error:

An invalid character was found in text
content.

How shall or solve this?

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-14T06:33:53+00:00Added an answer on May 14, 2026 at 6:33 am

    UTF-8 is the only encoding that can handle all those alphabets. It’s also the default encoding for XML, and the only encoding that makes sense for a modern application. (For storage/on-the-wire, anyway; for internal processing your language’s string type would be more likely to be UTF-16 or 32.)

    It would seem from the error that you have a problem in the input file, rather than an issue with your choice of output encoding. Maybe it’s encoded in something other than UTF-8 but has forgotten to include an <?xml encoding?> declaration to say so. Or maybe there’s an invalid ISO-2202-JP escape sequence? (This is a horror of an encoding.)

    You should try to load the input file into something that parses XML (eg. Firefox or IE) and see what errors, if any, it comes up with.

    (You can’t mix encodings in a single XML file. If you’ve spat out bytes strings from different sources into XML, you’ve already lost. How is this XML generated?)

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

Sidebar

Related Questions

I have an xml in the following format <root> <page> <title>text</title> <text attrib1=1>some text</text>
At current i have an index page which shows values from an XML page
I have the following XML <?xml version=1.0 encoding=ISO-8859-1?> <?xml-stylesheet type=text/xsl href=example3.xsl?> <pics> <page no=1>
I have a page which load a 500 mb xml file and parses the
I have the following invalid XML file: <?xml version=1.0 encoding=utf-8 ?> <Page num=1 crop_box=0,
Trying to use JSTL but have the following problem: Index.xhtml page: <?xml version=1.0 encoding=UTF-8?>
I have a custom XML schema defined for page display that puts elements on
I have an xml file which I imported in my html page like this:
Well lets try to explain am sorry about my english. I have some xml
I have a page which uses a tag template. My web.xml is very basic.

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.