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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:43:22+00:00 2026-06-11T09:43:22+00:00

I have a bunch of XML files that are declared as encoding=IBM1047 but they

  • 0

I have a bunch of XML files that are declared as encoding=”IBM1047″ but they don’t seem to be:

  • when converted with iconv from IBM1047 to UTF-8 or ISO8859-1 (Latin 1) they result in indecipherable garbage
  • file -i <name_of_file> says “unknown 8-bit encoding”
  • when parsed by an XML parser the parser complains there is text before the prolog but there isn’t; this error doesn’t happen if I change the encoding in the XML declaration to something else

It would be nice to find out the real encoding of these files (I tried ‘file -i’ as mentioned above, and ‘enca’ but it’s limited to Slavic languages (the files are in French)).

I have little control about how these files are produced; short of finding the actual encoding, if I can prove conclusively that the files are not in fact IBM1047 I may get the producer to do something about it.

How do I prove it?

Some special chars:

  • ‘é’ is ‘©’
  • ‘à’ is ‘ë’
  • ‘è’ is ‘Û’
  • ‘ê’ is ‘ª’
  • 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-06-11T09:43:23+00:00Added an answer on June 11, 2026 at 9:43 am

    The only way to prove that any class of data streams is encoded or not encoded in a particular way is to know, for at least one instance of the class, exactly what characters are supposed to be in the stream. If you have agreement on what characters are (supposed to be) in a particular test case, you can then calculate the bits that should be in the IBM 1047 (or any other) encoding of the test case, and compare those bits to the bits you actually see.

    One simple way for EBCDIC data to be mangled, of course, is for it to have passed through some EBCDIC/ASCII gateway along the way that used a translate table designed for some other EBCDIC code page. But if you are working with EBCDIC data you presumably already know that.

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

Sidebar

Related Questions

I have a bunch of XML files that are about 1-2 megabytes in size.
I have a bunch of .xml files with nodes that are causing uncessesary complications.
I have two XML files. The first XML has a bunch of nodes that
I have a bunch of XML files, along with the DTD, that each have
Background: In our project, we have a bunch of xml files that define tests
I have a bunch of ancillary XML and XSLT files that I want to
I have a bunch of gpx files that come from GPSLogger for Android app.
I have a bunch of XML files I'm using for user interface and string
I have a bunch of xml files named content_[0-9] (content underscore followed by a
I need to parse a bunch of incoming xml documents, they all have the

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.