First time here? Check out the FAQ!
1

strings with £ now appear as Â£

I downloaded and installed Wing Pro today then added a project I had been working on in IDLE IDE. I am running with python 3.7 on Windows 10. The problem is all the strings with £ now appear as Â£. I use £ extensively as the UK currency symbol. For example:

if int_pence > 0:
    return '£' + "{:,.2f}".format(pnds_float)

What should I do?

Michael Stroud's avatar
11
Michael Stroud
asked 2018-10-04 13:28:00 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2019-03-13 10:22:26 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Is there an encoding comment at the top of the file?  I suspect this is a utf8 file with no encoding comment on Windows.  You could either add a utf8 encoding comment or set the default file encoding on the Files page of the Preferences dialog.

Wingware Support's avatar
4k
Wingware Support
answered 2018-10-04 14:51:00 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer