Encoding for Devanagari Script.

Atul. atulskulkarni at gmail.com
Mon Jul 28 18:28:38 CEST 2008


Thanks, Tim that did work. I will proceed with my playing around now.

Thanks a ton.

Atul.
>
> Only slightly. You're importing the codecs module
> but you're not using it. So you're *actually* using
> the built-in open function, which doesn't have an
> encoding parameter. It does have a third param
> which is to do with the buffer size.
>
> Just change your code to use codecs.open ("...")
> and, I suggest, either use raw strings for your
> filename (r"c:\docume...") or use the other kind
> of slash ("c:/documen..."). Otherwise you might
> run into some problems.
>
> TJG




More information about the Python-list mailing list