I have enough now to be more specific, so I'm closing this thread.
On Sep 4, 3:08 am, weheh <[email protected]> wrote: > Can anyone please help with what looks like it should be a small > unicode problem? > > I've got an upload field. I enter the filename in an input form and > submit. My controller's accept manually stores the uploaded file using > db.mytable.myfield.store. I then read the file contents, process them, > and write them to a file under static using the same db....store > method. > > Later, I open and read the processed file and write the contents to a > DIV. Now I get garbled characters instead of Spanish characters, for > instance. > > It seems like I've got to do some encoding/decoding somewhere in the > flow, but where exactly is turning out to be a mystery. I've put > a .decode('utf-8') on the line reader from the uploads/file, but that > seems to aggravate the situation with more garbage characters. > > I was thinking web2py would do all the unicode stuff behind the scenes > for me, but it looks like it hasn't. I hope I'm wrong.

