Unicode support in python

2006-10-20 Thread sonald
Hi, I am using python2.4.1 I need to pass russian text into python and validate the same. Can u plz guide me on how to make my existing code support the russian text. Is there any module that can be used for unicode support in python? Incase of decimal numbers, how to handle "comma as a decimal

Re: Unicode support in python

2006-10-20 Thread sonald
Fredrik Lundh wrote: > >http://www.google.com/search?q=python+unicode > > (and before anyone starts screaming about how they hate RTFM replies, look > at the search result) > > Thanks!! but i have already tried this... and let me tell you what i am trying now... I have added the following li

Re: Unicode support in python

2006-10-25 Thread sonald
Fredrik Lundh wrote: > > what does the word "validate" mean here? > Let me explain our module. We receive text files (with comma separated values, as per some predefined format) from a third party. for example account file comes as "abc.acc" {.acc is the extension for account file as per our code}

Re: Unicode support in python

2006-10-25 Thread sonald
: > sonald wrote: > > Hi, > > I am using python2.4.1 > > > > I need to pass russian text into python and validate the same. > > Can u plz guide me on how to make my existing code support the > > russian text. > > > > Is there any module that can be us

how can i change the text delimiter

2006-08-30 Thread sonald
Hi, Can anybody tell me how to change the text delimiter in FastCSV Parser ? By default the text delimiter is double quotes(") I want to change it to anything else... say a pipe (|).. can anyone please tell me how do i go about it? -- http://mail.python.org/mailman/listinfo/python-list

Re: how can i change the text delimiter

2006-08-30 Thread sonald
ok like this: |askin"em| But for this the default text qualifier in fastcsv parser needs to be changed to pipe(|). how to do this? Also please note that the string cannot be modified at all. Thanks. Amit Khemka wrote: > sonald <[EMAIL PROTECTED]> wrote: > > Hi, > > Can an

Re: how can i change the text delimiter

2006-08-30 Thread sonald
to ur kind reply ... Fredrik Lundh wrote: > "sonald" wrote: > > > Thanks for a quick response... > > E.g record is: "askin"em" > > that's usually stored as "askin""em" in a CSV file, and the csv module > has no probl

Re: how can i change the text delimiter

2006-08-31 Thread sonald
is double quote Now if I can change the default text qualifier... to say pipe (|) the double quote inside the string may be ignored... plz refer to the example given in my previous query... Thanks.. Fredrik Lundh wrote: > "sonald" wrote: > > > fast csv is the the csv

Re: how can i change the text delimiter

2006-09-04 Thread sonald
; Python 2.4 ... so you want some docs. The simplest thing to do is to > ask it, e.g. like this, but with Python 2.4 (not 2.2) and call it > fastcsv (not csv): > I guess... that's true... ;) Thank you very much. Thanks a lot for the reponse John Machin wrote: > sonald wrote

=?iso-8859-1?q?How_to_allow_special_character's_like_=EF, =F9, acute_e_etc...?=

2006-09-05 Thread sonald
Dear All, I am working on a module that validates the provided CSV data in a text format, which must be in a predefined format. We check for the : 1. Number of fields provided in the text file, 2. Text checks for max. length of the field & whether the field is mandatory or optional Example: