[EMAIL PROTECTED] wrote:
> As a noob I've struggled a bit, but basically what I've come up with
> is => if the information is strings and especially strings stored in
> any style of list/dict, it takes a loop to write the lines to file
> myfile[ i ] + '\n' to keep each line for Python I/O purposes.
On Oct 13, 5:22 pm, "Juha S." <[EMAIL PROTECTED]> wrote:
> Thanks! Opening and saving the file with the iso-8859-1 codec seems to
> handle the characters correctly. Now the only problem left are the
> missing newlines in the output file. I tried googling for the iso code
> for newline and entering
Thanks! Opening and saving the file with the iso-8859-1 codec seems to
handle the characters correctly. Now the only problem left are the
missing newlines in the output file. I tried googling for the iso code
for newline and entering it in a Python string as '\x0A' but it doesn't
work in the ou
Sat, 13 Oct 2007 16:13:21 +0300, Juha S. kirjoitti:
> Thanks for the reply. I made changes to my code according to your
> example. Now any Scandinavian characters that are outputted by the
> program are missing in the Tk text box.
> file = codecs.open(filename, 'r', 'utf-8', 'ignor
Thanks for the reply. I made changes to my code according to your
example. Now any Scandinavian characters that are outputted by the
program are missing in the Tk text box.
I'm using a loading function like this to load the data that is to be
outputted by the program:
def loadWords(self, filen
Juha S. kirjoitti:
> problem is that when I try to save its contents to a .txt file, any
> Scandinavian letters such as "äöå ÄÖÅ" are saved incorrectly and show up
> as a mess when I open the .txt file in Windows Notepad.
>
> It seems that the characters will only get mixed if the user has typed
Hi,
I'm writing a small text editor type application with Python 2.5 and
Tkinter. I'm using the Tk text widget for input and output, and the
problem is that when I try to save its contents to a .txt file, any
Scandinavian letters such as "äöå ÄÖÅ" are saved incorrectly and show up
as a mess wh