Encoding datetime and uft chars with json

17 views
Skip to first unread message

Attique Tecnologia

unread,
Sep 1, 2019, 6:03:00 PM9/1/19
to web2py-users
Hello my friends.
I have a problem with json, charset, and python date and time encoding.
My goal is to use web2py rows (db().select()) to simplify my work, but I not find the best way made.
See.
import json
# Not suport python datetime.

from gluon.contrib.simplejson import JSONEncoder
#Not suport python datetime

from gluon.serializers import json
#Suport the python datetime, but not suport charsets utf-8  (~, ç, ^...)

Someone have a solution?

NOTE: I seek in this group but nothing found.
Reply all
Reply to author
Forward
0 new messages