Thanks, Leonel,

In a different app (not web2py) I hit this issue pickle and the change you 
suggest solved the problem
Unfortunately, in the web2py and db.export_to_csv_file context, when I make 
the change you suggest, the error message just changes to

01/Mar/2019-12:32:27: INFO         : backups          : 303   | backing db 
up as 
"applications/MFMCurrAssetMgr/private/_backups/bup_010319_123226/MFMCurrAssetMgr-db.csv"
01/Mar/2019-12:32:27: WARNING : backups         : 309   |     - db backup 
Failed: exception: "'ascii' codec can't encode character '\u2019' in 
position 12: ordinal not in range(128)"


On Friday, March 1, 2019 at 11:43:26 AM UTC-8, Leonel Câmara wrote:
>
> You actually have to open it using only 'w' instead of 'wb' in python 3 so 
> change it to:
>
> with open(session.db_backup_name, 'w', newline=''):
>
> See:
> https://docs.python.org/3/library/csv.html?highlight=csv#csv.writer
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to