May-17-2018, 02:14 AM
does anyone understand what is going on here:
https://stackoverflow.com/questions/2736...t-encode-s
i am getting error messages about "surrogates not allowed" on a few files that have valid Unicode characters in their names which are correctly encoded in UTF-8. no surrogate codes (U+D800..U+DFFF) are in these file names. this is happening in the huge "aws" command that implements "aws s3 sync" among other things. what i am curious about is what kinds of common coding errors around Unicode/UTF-8 facilities in python3 could end up with these surrogate codes. how did the SOf poster end up with those codes in a non-AWS script? what should i do to fix that "aws" command/script?
https://stackoverflow.com/questions/2736...t-encode-s
i am getting error messages about "surrogates not allowed" on a few files that have valid Unicode characters in their names which are correctly encoded in UTF-8. no surrogate codes (U+D800..U+DFFF) are in these file names. this is happening in the huge "aws" command that implements "aws s3 sync" among other things. what i am curious about is what kinds of common coding errors around Unicode/UTF-8 facilities in python3 could end up with these surrogate codes. how did the SOf poster end up with those codes in a non-AWS script? what should i do to fix that "aws" command/script?