[Tutor] Question about python for web

2013-06-23 Thread Dat Huynh
Dear all, I have a very simple question about running a simple web application with apache on MacOS. Step 1: Copy the file mod_wsgi.so from the link http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-macosx106-ap22py26-3.3.so into the folder "/usr/libexec/apache2" Step 2: Add the f

Re: [Tutor] Encoding error when reading text files in Python 3

2012-07-28 Thread Dat Huynh
I change my code and it runs on Python 3 now. f = open(rootdir+file, 'rb') data = f.read().decode('utf8', 'ignore') Thank you very much. Sincerely, Dat. On Sat, Jul 28, 2012 at 6:09 PM, Steven D'Aprano wrote: > Dat Huynh wrote:

[Tutor] Encoding error when reading text files in Python 3

2012-07-28 Thread Dat Huynh
i' codec can't decode byte 0xd1 in position 4980: ordinal not in range(128) ------ Thank you very much for your help. Sincerely, Dat Huynh. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor