[Answer]-Exception Value: 'ascii' codec can't decode byte 0xc2 in position 19: ordinal not in range(128)

1👍

Specify the encoding to be used explicitly like this

# -*- coding: latin-1 -*-
print (r'^letter/([a-zA-Z0-9µ])/$')

Output

^letter/([a-zA-Z0-9µ])/$

0👍

Try add

# -*- coding: utf-8 -*-

As u first line.

👤Naster

Leave a comment