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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:14:00+00:00 2026-05-23T05:14:00+00:00

I have a huge xml file whose sample data is as follows : <vendor

  • 0

I have a huge xml file whose sample data is as follows :

 <vendor name="aglaia"><br>
              <vendorOUI oui="000B91" description="Aglaia Gesellschaft für Bildverarbeitung ud Kommunikation m" /><br>
         </vendor><br>
         <vendor name="ag"><br>
              <vendorOUI oui="0024A9" description="Ag Leader Technology" /><br>
         </vendor><br>

as it can be see there are text ” Gesellschaft für Bildverarbeitung ” which is not UTF-8 compliant because which I am getting errors from the xml validator , errors like:

Import failed:
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.

So the query is how to take care of this in Linux environment to convert the xml file to UTF-8 compliant format? or is there a way in bash such that while creating the xml in the first place i can ensure that all variables/strings are stored in UTF-8 compliant format?

  • 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-23T05:14:01+00:00Added an answer on May 23, 2026 at 5:14 am

    Use the character set conversion tool:

    iconv -f ISO-8859-1 -t UTF-8 filename.txt
    

    See gnu-page

    …and in file http://standards.ieee.org/develop/regauth/oui/oui.txt “aglia” (as in your example above) is reported as:

    00-0B-91   (hex)            Aglaia Gesellschaft für Bildverarbeitung und Kommunikation m
    000B91     (base 16)        Aglaia Gesellschaft für Bildverarbeitung und Kommunikation m
                                Tiniusstr. 12-15
                                Berlin  D-13089
                                GERMANY
    

    it seems like “ü” is the character that gets mangeld.

    Update

    When downloading “oui.txt” using wget, I see the character “ü” in the file. If you don’t have that something is broken in your download. consider using one of these:

    • wget --header='Accept-Charset: utf-8'
    • try using curl -o oui.txt instead

    If none of the above works, just open the link in you favorite browser and do a “save as”. In that case, comment the wget line in the script below.

    I had success with the following script (update BEGIN & END to get a valid XML-file)

    #!/bin/bash
    
    wget http://standards.ieee.org/develop/regauth/oui/oui.txt
    iconv -f iso-8859-15 -t utf-8 oui.txt > converted
    
    awk 'BEGIN {
             print "HTML-header"
         }
    
         /base 16/ {
             printf("<vendor name=\"%s\">\n", $4)
             read
             desc = substr($0, index($0, $4))
             printf("<vendorOUI oui=\"%s\" description=\"%s\"/>\n", $1, desc)
         }
         END {
             print "HTML-footer"
        }
        ' converted
    

    Hope this helps!

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

Sidebar

Related Questions

I have a huge bunch of XML files with the following structure: <Stuff1> <Content>someContent</name>
I have a thousands of data parsed from huge XML to be inserted into
I have this very huge XML file of size 2.8GB. This is Polish Wikipedia's
As the title says it, I have a huge xml file (GBs) <root> <keep>
I have a huge XML file (114 KB/1719 lines; see the error message below
So I have this huge XML file that I am converting to an object
First of all, I got this huge xml file that represents data collected by
I have a huge XML file of 9 GB where i need to add
I have got a huge xml file (~ 85 Mo) and I would like
I have .MAP file which is created from SAS XML mapper. As the name

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.