# UnicodeEncodeError: 'ascii' codec can't encode character '/xe9' in position 0: ordinal not in range(128) (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/unicodeencodeerror-ascii-codec-can-t-encode-character-xe9-in-position-0-ordinal-not-in-range-128-9953a4bf94e2
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: python, unicodeencodeerror

'é'.encode('ascii'). cp1252 with U+2192: "'charmap' codec can't encode character '/u2192' in position 1: character maps to <undefined>" plus a 'encoding with 'cp1252' codec failed' note line. (Backslashes in this note shown as slashes.)
