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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:51:10+00:00 2026-05-11T21:51:10+00:00

I have the following XML code. <firstname> <default length=6>Örwin</default> <short>Örwin</short> <shorter>Örwin</shorter> <shortest>�.</shortest> </firstname> Why

  • 0

I have the following XML code.

<firstname>
 <default length="6">Örwin</default>
 <short>Örwin</short>
 <shorter>Örwin</shorter>
 <shortest>�.</shortest>
</firstname>

Why does the content of the “shortest” node break? It should be a simple “Ö” instead of the tedious �. XML is UTF-8 encoded and the function which processes the output of that node also writes the content of “short” and “shorter”. Where the “Ö” is clearly visible.

  • 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-11T21:51:10+00:00Added an answer on May 11, 2026 at 9:51 pm

    My guess is that the XML isn’t properly UTF-8 encoded. Please show the bytes within the <shortest> element in the raw file… I suspect you’ll find they’re not a validly encoded character. If you could show a short but complete program which generates this XML from valid input, that would be very helpful. (Preferably saying which platform it is, too 🙂

    EDIT: Something very odd is going on in this file. Here are the hex values for the “shorter” and “shortest” values:

    Shorter: C3 96 72 77 69 63

    Shortest: EF BF BD 2E

    Now “C3 96” is the valid UTF-8 encoding for U+00D6 which is “Latin capital letter O with diaeresis” as you want.

    However, EF BF BD is the UTF-8 encoding for U+FFFD which is “replacement character” – definitely not what you want. (The 2E is just the ASCII dot.)

    So, this is actually valid UTF-8 – but it doesn’t contain the characters you want. Again, you should examine what created the file…

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

Sidebar

Related Questions

I have a line of PHP code that does the following: $xml = <xml><request>...[snipped
Learning xml, Can anyone help me? I have following XML code: **<book lang=en>name of
I have following code: //preparing DAO objects FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext(test-context.xml); surveyDao =
friends, i have created custom title bar using following titlebar.xml file with code <?xml
I have the following code that serializes a DataTable to XML. StringWriter sw =
I have the following code: $page=3; $i=1; while($i<=$pages) { $urls .= '.http://twitter.com/favorites.xml?page= . $i
I have a following XML code: <Group> <GElement code=x> <Group> <GElement code=x> <fname>a</fname> <lname>b</lname>
I have the following XML code, which I got by a UPnP device and
I have the following XML Parsing code in my application: public static XElement Parse(string
I have the following magento XML code: <action method=addLink translate=label module=customer><name>myorders</name><path>chepri/myorders/customer</path><label>Standing Orders</label></action> I was

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.