Using £ (British pounds) symbol

Users who are viewing this thread

grailknighthero

Sergeant Knight
I am trying to use the £ symbol but I can't seem to get it to work.  I am able to compile fine (added the encoding at the top of the py files) but the symbol does not display with my text.  I am using native font and the symbol is in the font.dds.  Any ideas?  Thanks for any help.
 
You'll have to open the compiled .txt files in the module folder and re-save them in UTF-8 encoding. Notepad will work for that.

I asked about this before and nobody could come up with another solution.
 
I figured it out.  I was using # -*- coding: cp1252 -*- instead of # -*- coding: utf-8 -*-

I guess I'll figure out how to use cp1252  characters with the British pound later on.  Weird, cp1252  has a British pound symbol yet it wasn't mapping to the pound symbol in M&B, even though other cp1252 characters map correctly.  Perhaps the websites I got the pound symbol from were using utf-8 instead of cp1252 even though they were about cp1252 characters?  That's all I can come up with.
 
Back
Top Bottom