Bytes and encodings in Python

preview_player
Показать описание
Can Python automatically figure out which encoding to use from bytes? In this video, I a question from reader Patrik.

Рекомендации по теме
Комментарии
Автор

This was wonderful way to present this topic--concise and clear. I learned a lot here.

ben
Автор

Best explanation of the topic I found yet, really appreciate your time to explain this.

MsMJehan
Автор

Thank you so much, this video helped me with a problem haunting me for a week!

OlafBeardfoot
Автор

Thank you! Couldn't have hoped for a better explanation.

adilshamji
Автор

This was FANTASTIC.
Subbed!! Cant wait to watch the next

bensmith
Автор

Thank you very much for such clear explanation on this topic.

shinej
Автор

best explanatation for this topic. thank you

takshpatel
Автор

Interesting. I actually understand all this explanation. Pretty proud of myself 🙂🙂🦆🦆

andracoisbored
Автор

Helped a lot, thanks.... anyone else watch this clip in covid lockdown?

nocontentnoname
Автор

Thank you very much for this video, Reuven! It was very educational and I really enjoyed it! :)

tymothylim
Автор

2:39 - is it a characteristic of the encoding you used that you did s[0] but it printed the character that looks like a 'w' and is actually last in the string?

robertbush
Автор

thank you. best explanation. loved it.

erick
Автор

Sir how to find the number of bytes value in pythons (attribute value of series)...how the output gives values like 32bytes...etc plz explain

believer
Автор

sorry just went thru the vid again in full....and not sure why its able to print out the 2 byte characters if you set it to a varaible...and also so around 5minutes in till the end thats where its confsuing....not sure if i should try the method of setting ot to a varaible as you did and put in my code at the lines where i get the cant decode byte in cp is cp 1252 file involved anyway in my script decode issues/?...thnxz bit still very lost on this..even though i feel im actually understanding the different codings schemes

angelicamatch
Автор

Excuse me sir, I have a question, What method can I use to let the b'\x00 \x00' convert to string and let it be '00' ?

use_FongSha
Автор

Super interesting. But I didn't get how I can write a function that can read and properly encode any input from any language... Is that even possible?

alessioandreoli
Автор

sir how can we contvert utf-8 code into character ??

aaratidhungel
Автор

i am still trying to print a charcter in the 2 byte range in python2 ..for arabic charcter(which for some reason i cant copy and paste here i dont know why)....but its the U+0626character and i cant encode it..so that it will print..i thought you can do .encode ('utf-8') or u(and the U+0626) and it wil print but i keep getting unsupported chaharcater

angelicamatch
Автор

Hi, how to get rid of unicode errors while reading excel sheet in python

mucharlaravivenkatateja
Автор

Hi, i am working on creating mainframe ebcdic file whuch has got comp-3 columns (packed decimal) and regular data type colums. Columns other than comp-3 am encoding to cp037. I am trying how to convert data to comp-3 and encode to cp037 like other columns. Please suggest

manojkumar-jddk