The main goal of this cheat sheet is to collect some common snippets which are related to Unicode. In Python 3, strings are represented by Unicode instead of bytes. Further information can be found on ...
サーバーの生ログや、外部APIからのレスポンスデータを確認しているとき、日本語であるはずの箇所が \u8a8d\u8a3c のような英数字の羅列になっていて困ったことはありませんか? これは厳密には「文字化け」ではなく、ユニコードエスケープ(Unicode Escape ...
Web APIとの通信ログ解析や、レガシーシステムへのデータ移行、あるいは国際化対応(i18n)が必要な設定ファイルの編集。 Pythonで開発を行っていると、日本語などのマルチバイト文字をそのままの状態ではなく、\u3042 のような 「ユニコードエスケープ ...
Make sure you are running Python version 3.7 or higher, older versions could cause problem on the way the special characters are processed through UNICODE. Python 3 ...