Oct-15-2019, 06:17 PM
what encoding is this? You can encode it via encode() method
>>> len('lòng') 5 >>> len('lòng'.encode('ascii','ignore')) 4
Recommended Tutorials:
python gives wrong string length and wrong character
|
|
Messages In This Thread |
python gives wrong string length and wrong character - by thienson30 - Oct-15-2019, 05:44 PM
RE: python gives wrong string length and wrong character - by metulburr - Oct-15-2019, 06:17 PM
RE: python gives wrong string length and wrong character - by Gribouillis - Oct-15-2019, 08:54 PM
|