Hi!
I have big .txt file which i want to read, process and write to another .txt
file.
I have done script for that, but im having problem with croatian characters
(Š,Đ,Ž,Č,Ć).
How can I read/write from/to file in utf-8 encoding?
I read file with fileinput.input.
thanks
--
http://mail.python.o
On Oct 8, 12:49 pm, Bruno <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I have big .txt file which i want to read, process and write to another .txt
> file.
> I have done script for that, but im having problem with croatian characters
> (Š,Đ,Ž,Č,Ć).
Can you show us what you have so far?
> How can I read/
Benjamin wrote:
On Oct 8, 12:49 pm, Bruno <[EMAIL PROTECTED]> wrote:
Hi!
I have big .txt file which i want to read, process and write to another .txt
file.
I have done script for that, but im having problem with croatian characters
(Š,Đ,Ž,Č,Ć).
Can you show us what you have so far?
How can
Hi,
What is the encoding of the file1 you're reading from? I just ran
tests on my machine (OS X)
with both python2.5 and 2.6 and was able to read from a file containing:
"život je lep"
The file is UTF-8 encoded.
>>> data = open("test.txt").read()
>>> data
'\xc5\xbeivot je lep.'
>>> f = open("tes
On Oct 8, 5:55 pm, gigs <[EMAIL PROTECTED]> wrote:
> Benjamin wrote:
> > On Oct 8, 12:49 pm, Bruno <[EMAIL PROTECTED]> wrote:
> >> Hi!
>
> >> I have big .txt file which i want to read, process and write to another
> >> .txt file.
> >> I have done script for that, but im having problem with croatia
Kent Johnson wrote:
On Oct 8, 5:55 pm, gigs <[EMAIL PROTECTED]> wrote:
Benjamin wrote:
On Oct 8, 12:49 pm, Bruno <[EMAIL PROTECTED]> wrote:
Hi!
I have big .txt file which i want to read, process and write to another .txt
file.
I have done script for that, but im having problem with croatian c