Displaying Arabic text in XML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • suhaddad@gmail.com

    Displaying Arabic text in XML

    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.

    <LearningResour ceData 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.

  • Martin Honnen

    #2
    Re: Displaying Arabic text in XML



    suhaddad@gmail. com wrote:
    [color=blue]
    > 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.
    >
    > <LearningResour ceData 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?[/color]

    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">S ession - Tutorial and Workouts</text>
    <text xml:lang="ru">Ð ’стреча - ÐºÐ¾Ð½ÑÑƒÐ»ÑŒÑ ‚ация и</text>
    </text-list>


    --

    Martin Honnen

    Comment

    • suhaddad@gmail.com

      #3
      Re: Displaying Arabic text in XML

      Thank you for your help Martin.

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

      -Suha


      Martin Honnen wrote:[color=blue]
      > suhaddad@gmail. com wrote:
      >[color=green]
      > > I have an XML schema that I want to modify. I need to change the[/color][/color]
      text[color=blue][color=green]
      > > from English to Arabic, but I can't seem to be able to do so.
      > >
      > > <LearningResour ceData Type="Session - Tutorial and Workouts">
      > >
      > > I want to display the Type attribute in Arabic characters. How can[/color][/color]
      I do[color=blue][color=green]
      > > that using Unicode or whatever else works?[/color]
      >
      > 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[/color]
      different[color=blue]
      > alphabets in XML you are right, an Unicode encoding like UTF-8 is a[/color]
      way[color=blue]
      > 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">S ession - Tutorial and Workouts</text>
      > <text xml:lang="ru">Ð ’стреча - ÐºÐ¾Ð½ÑÑƒÐ»ÑŒÑ ‚ация[/color]
      и</text>[color=blue]
      > </text-list>
      >
      >
      > --
      >
      > Martin Honnen
      > http://JavaScript.FAQTs.com/[/color]

      Comment

      • Martin Honnen

        #4
        Re: Displaying Arabic text in XML



        suhaddad@gmail. com wrote:

        [color=blue]
        > So, how can I display an attribute of a tag in Arabic?[/color]

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


        --

        Martin Honnen

        Comment

        Working...