Posts: 4,647
Threads: 1,494
Joined: Sep 2016
if i have a list with a series of Unicode code point values as ints and want to convert to a list of utf-8 code values as ints, how could i achieve this in Python? the reverse would be nice, too.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
Jul-21-2018, 08:28 PM
(This post was last modified: Jul-21-2018, 08:28 PM by Skaperen.)
no current code, still planning. but i want to avoid all these error messages and get the results, even for many "invalid" cases like overlong codes (when doing utf8 to unicode) and out of range (when doing unicode to utf8).
according to some past readings (i no longer have the urls) about some aws stuff that was developed in python on their servers (i can't get the source) python's utf8 code does not handle some conversion cases correctly. in order to see if some errors i am getting at aws are related, i need some conversion that handles all cases. so it can't use what python already has. so i am writing my own. i still need a means to check if my own is correct.
i will be doing mine to run in python2.7 and python3.5 (hopefully all python3).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.