Displaying Arabic text in XML

S

suhaddad

I have an XML schema that I want to modify. I need to change the text
from English to Arabic, but I can't seem to be able to do so.

<LearningResourceData Type="Session - Tutorial and Workouts">

I want to display the Type attribute in Arabic characters. How can I do
that using Unicode or whatever else works?

HELP! I am new to XML.

Thanks.
 
M

Martin Honnen

I have an XML schema that I want to modify. I need to change the text
from English to Arabic, but I can't seem to be able to do so.

<LearningResourceData Type="Session - Tutorial and Workouts">

I want to display the Type attribute in Arabic characters. How can I do
that using Unicode or whatever else works?

I don't speak Arabic so I can't translate
"Session - Tutorial and Workouts"
to that language for you but as far as having characters from different
alphabets in XML you are right, an Unicode encoding like UTF-8 is a way
to have your XML encoded in a way so that many different
languages/scripts can be used inside of one document e.g.

<?xml version="1.0" encoding="UTF-8"?>
<text-list>
<text xml:lang="en">Session - Tutorial and Workouts</text>
<text xml:lang="ru">Ð’Ñтреча - конÑÑƒÐ»ÑŒÑ‚Ð°Ñ†Ð¸Ñ Ð¸</text>
</text-list>
 
S

suhaddad

Thank you for your help Martin.

So, how can I display an attribute of a tag in Arabic?

-Suha
 
M

Martin Honnen

So, how can I display an attribute of a tag in Arabic?

By using your favourite text editor with support for Unicode and then
creating an UTF-8 encoded XML document with that editor.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top