Hi, On 24/07/11 01:43 AM, DÃvid GÃbor Bodor wrote:
The attached patch FIXES the bug described below. BUG description: Using python3, print(event) raises UnicodeEncodeError, if event.unicode cannot be represented in ASCII. Example: $ python3import pygame pygame.display.set_mode((640, 480)) while True:... for event in pygame.event.get(): ... print(event) [ user presses a key that cannot be represented in ASCII, like: ÅÃÃÃÃÅÃÃ ] UnicodeEncodeError: 'ascii' codec can't encode character '\xed' in position 13: ordinal not in range(128)
Fixed in revision 3194. This was a more general problem with Event.__repr__. Lenard Lindstrom