Skip to content Skip to sidebar Skip to footer
Showing posts with the label Codec

Codecs.open(utf-8) Fails To Read Plain Ascii File

I have a plain ASCII file. When I try to open it with codecs.open(..., 'utf-8'), I am unabl… Read more Codecs.open(utf-8) Fails To Read Plain Ascii File

How To Decode Raw Binary To Hex

I'm required to decode a raw binary value that looks like b'\xa3\x13\xa4;\xcb\xda\x1b\x1b,U… Read more How To Decode Raw Binary To Hex

Python: How Do I Read And Parse A Unicode Utf-8 Text File?

I am exporting UTF-8 text from Excel and I want to read and parse the incoming data using Python. I… Read more Python: How Do I Read And Parse A Unicode Utf-8 Text File?

How To Write Mp4 Video File With H264 Codec?

On OSX I can record from my webcam and write a video file with the following simple script: import … Read more How To Write Mp4 Video File With H264 Codec?