Hi,
I am trying to write Japanese to a XML file generated through java.
i am trying to write "日本語" to the XML
But the generated XML is showing "???" instead of Japanese characters.

<?xml version="1.0" encoding="ISO-8859-1"?>
<Project>???</Project>

How to overcome this problem. i need your help desperately.

Recommended Answers

All 2 Replies

no one there to help me?

You cannot display Japanese code points using ISO-8859-1 (Latin-1). All XML processors must support at least UTF-8 and UTF-16 but not necessarily other encodings. You need to specify a suitable encoding for the particular Japanese syllabary that you are using, i.e. Hiragana, Katakana, Kanji or Romaji

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.