Tag

bytes

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Sep 23, 2023 · Fundamentals

Understanding Python String Prefixes: u, r, b, and f

Python string prefixes such as u (Unicode), r (raw), b (bytes), and f (formatted) indicate special string types, with each prefix altering how the string is interpreted, and the article explains their meanings, usage, and provides code examples for each.

Formatted StringsRaw StringsString Prefixes
0 likes · 3 min read
Understanding Python String Prefixes: u, r, b, and f
Beike Product & Technology
Beike Product & Technology
Dec 6, 2018 · Fundamentals

Understanding Encoding Issues in Python: Bytes, Unicode, and Best Practices

This article explains why encoding problems frequently arise with Chinese characters in development, clarifies core concepts such as bytes, characters, ASCII, Unicode and UTF encodings, compares Python 2 and Python 3 handling of strings and bytes, and provides practical best‑practice recommendations to avoid encoding bugs.

PythonPython2UTF-8
0 likes · 12 min read
Understanding Encoding Issues in Python: Bytes, Unicode, and Best Practices