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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:54:24+00:00 2026-05-26T05:54:24+00:00

I am making an xml document with japanese strings in it. I have tried

  • 0

I am making an xml document with japanese strings in it. I have tried different encodings but everytime when I save the file, it replaces the japanese strings with “??????”.. I have a very brief sample code here.. Please advise me towards what encoding should I use for the xml doc.

<?xml version="1.0" encoding="utf-8"?>
<config>
        <start_text>転送</start_text>
</config>

Please advise me regarding what encoding should I use so that the japanese characters are retained even after saving and closing the xml doc.
Thanks all

  • 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-26T05:54:25+00:00Added an answer on May 26, 2026 at 5:54 am

    There are two Japanese characters in your XML file, and you get six question marks. This smells like UTF-8 encoding, as mentioned in your XML file. There are several possibilities:

    The program that reads the XML file reads it with encoding ASCII, and therefore replaces every byte outside the ASCII range with a question mark.

    The program reads the XML file properly, but then prints the UTF-8 encoded bytes to some output channel using the ASCII encoding, replacing each out-of-range byte with a question mark.

    (Side note: If the output were 転é?? it would be UTF-8 printed to an ISO-8859-1 output channel. But it seems to be six question marks.)

    You need to find out at which places the following transformations happen:

    • A byte sequence is transformed to a character sequence. (Probably in the XML reader.)
    • A character sequence is transformed to a byte sequence.
    • A byte (or character) sequence is transformed into a glyph sequence. (For displaying them; this may be an editor or a console.)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a CSS file for an XML document. I need to insert
I have some problems making a google map that loads XML file that have
I’m making a simple LOB app which loads data from an XML file and
Are these nested comments allowed in a XML file? <!-- Making only one observation
I am new to programming so bear with me. I have an XML document
Background: We have an XML document containing thousands of pseudocode functions. I've written a
I have an xml document and schema and when I open the xml document
I have to following XML document structure: <option_set id=1> <option>Yes</option> <option>No</option> <option>Maybe</option> </option_set> <question
I have a process that parses an XML file using JDOM and xpath to
I'm making an android application that does DOM parsing on an xml file. I

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.