On Mon, Jun 1, 2015 at 6:22 PM, Steven D'Aprano <st...@pearwood.info> wrote: What do you mean, the Java program inserts it directly? Inserts it into what?
I mean that java program use the list and directly send it into apache phoenix to do "batch upsert". I thought that because the list is not show me the way I set it, then it will send the wrong data into apache phoenix. I still haven't found the problem yet, I don't know which program is at fault. Anyway, your explanation is really good, thank you. On Mon, Jun 1, 2015 at 4:55 PM, Peter Otten <__pete...@web.de> wrote: import json items = [u"sffs © fafd"] # unicode preferrable over str for non-ascii data print json.dumps(items, ensure_ascii=False) ["sffs © fafd"] I haven't try that, using unicode strings before append it into the list. Awesome, I'll try it out later when I got in the office. Thank you very much. --- Best regards, Boy Sandy Gladies Arriezona _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor