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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top