Re: Questions on XML

2009-08-25 Thread SUBHABRATA BANERJEE
I was trying this. Looks perfectly fine. There must be something really wrong. If you can reinstall Python 2.5. >>> a1=raw_input("String") Stringআম On Mon, Aug 24, 2009 at 12:18 AM, Rami Chowdhury wrote: > My problem is with IDLE on Windows. When I try to type Bangla directly into > the IDLE wind

Re: Questions on XML

2009-08-23 Thread Rami Chowdhury
My problem is with IDLE on Windows. When I try to type Bangla directly into the IDLE window I only get '?' characters, and repr() fails with a UnicodeDecodeError. I expect, though, that that's because of my specific installation / Windows issues, as it works fine on Fedora 10... > I do not get

Re: Questions on XML

2009-08-22 Thread joy99
On Aug 22, 12:16 pm, Rami Chowdhury wrote: > > encoding declaration to the top of your source file if you use encoded > > literal strings in your code > > Any tips for how to set the encoding in IDLE? printing the Unicode   > strings works -- trying to repr() the variable chokes with a   > Unicode

Re: Questions on XML

2009-08-22 Thread SUBHABRATA BANERJEE
Should I help you? If you answered my questions I am differing from your view I do not get any problem in processing Hindi or Bangla or any Indian language in Python it is perfectly fine. Best Regards, Subhabrata. On Sat, Aug 22, 2009 at 9:48 AM, Rami Chowdhury wrote: > > I am using primarily UTF

Re: Questions on XML

2009-08-22 Thread Stefan Behnel
Kee Nethery wrote: > As a newbie, the thing that caused me trouble was importing a string > into the XML parser. That would be root_element = et.fromstring(some_string) The parse() function is meant to parse from a file. > from xml.etree import ElementTree as et > theXmlDataTree = et.p

Re: Questions on XML

2009-08-22 Thread Rami Chowdhury
encoding declaration to the top of your source file if you use encoded literal strings in your code Any tips for how to set the encoding in IDLE? printing the Unicode strings works -- trying to repr() the variable chokes with a UnicodeDecodeError, and trying to enter the literals inside IDLE

Re: Questions on XML

2009-08-22 Thread Emmanuel Surleau
On Saturday 22 August 2009 08:13:33 joy99 wrote: > On Aug 22, 10:53 am, Stefan Behnel wrote: > > Rami Chowdhury wrote: > > >> I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I > > >> use Python to help me in this regard? > > > > > > I can say from experience that Python on Win

Re: Questions on XML

2009-08-21 Thread Emmanuel Surleau
> >> I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I > >> use Python to help me in this regard? > > > > I can say from experience that Python on Windows (at least, Python 2.5 > > on 32-bit Vista) works perfectly well with UTF-8 files containing > > Bangla. I have had trouble

Re: Questions on XML

2009-08-21 Thread joy99
On Aug 22, 10:53 am, Stefan Behnel wrote: > Rami Chowdhury wrote: > >> I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I > >> use Python to help me in this regard? > > > I can say from experience that Python on Windows (at least, Python 2.5 > > on 32-bit Vista) works perfectly

Re: Questions on XML

2009-08-21 Thread Kee Nethery
On Aug 21, 2009, at 7:15 PM, joy99 wrote: Dear Group, I like to convert some simple strings of natural language to XML. May I use Python to do this? If any one can help me, on this. I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I use Python to help me in this regard?

Re: Questions on XML

2009-08-21 Thread Stefan Behnel
Rami Chowdhury wrote: >> I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I >> use Python to help me in this regard? > > I can say from experience that Python on Windows (at least, Python 2.5 > on 32-bit Vista) works perfectly well with UTF-8 files containing > Bangla. I have h

Re: Questions on XML

2009-08-21 Thread Rami Chowdhury
I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I use Python to help me in this regard? I can say from experience that Python on Windows (at least, Python 2.5 on 32-bit Vista) works perfectly well with UTF-8 files containing Bangla. I have had trouble with working with

Re: Questions on XML

2009-08-21 Thread David Smith
joy99 wrote: > Dear Group, > > I like to convert some simple strings of natural language to XML. May > I use Python to do this? If any one can help me, on this. > > I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I > use Python to help me in this regard? > > How can I learn

Questions on XML

2009-08-21 Thread joy99
Dear Group, I like to convert some simple strings of natural language to XML. May I use Python to do this? If any one can help me, on this. I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I use Python to help me in this regard? How can I learn good XML aspects of Python. If