Abstract
Information is printed/displayed in natural language character combinations. But computer communication and storage systems use only bit streams. Unicode which defines universally accepted conversion between character and bit streams is the basis to bridge the gap between the two. Different coding schemes of conversion are in vogue—UTF8 being the most widely used one. UTF8 is explained and coding/decoding related constructs in Python dealt with in detail. Character streams as strings and binary string related operations are treated comprehensively. ‘Bytes’ and ‘bytearray’ as sequence representations and number representations in different forms (binary, octal, hex, decimal, and radix-specified) and their conversions come in handy here. Exercises provided are in classical cryptography, cryptanalysis, and selected coding schemes; these are useful in relating Python operations with characters effectively.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Forouzan B (2013) Data communications and networking, 5th edn. McGraw Hill, New York
Original UTF-8 paper. (http://doc.cat-v.org/plan_9/4th_edition/papers/utf)
Padmanabhan TR (2007) Introduction to microcontrollers and their applications. Alpha Science International Ltd, Oxford
Shyamala CK, Harini N, Padmanabhan TR (2011) Cryptography and security. Wiley India, New Delhi
The Unicode Standard: A Technical—Introduction. (http://www.unicode.org/standard/principles.html)
van Rossum G, Drake FL Jr (2014) The Python library reference. Python Software Foundation
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2016 Springer Nature Singapore Pte Ltd.
About this chapter
Cite this chapter
Padmanabhan, T.R. (2016). Operations for Text Processing. In: Programming with Python. Springer, Singapore. https://doi.org/10.1007/978-981-10-3277-6_7
Download citation
DOI: https://doi.org/10.1007/978-981-10-3277-6_7
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-10-3276-9
Online ISBN: 978-981-10-3277-6
eBook Packages: Computer ScienceComputer Science (R0)