Locale and char encoding in the shell of the C replete

See that accents are not displayed correctly in the shell. How can I fix it? My replit was created based on the template for C

~/curso-ic$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
~/curso-ic$ echo Às eleições | tr " ,.\!…?;" "\n" | tr '[:upper:]' '[:lower:]'
�
s
eleições