When I use currency symbols, they come out wrong when I run the file. If I use £ (Alt+0163), It displays ú (Alt+163).
Any ideas???
When I use currency symbols, they come out wrong when I run the file. If I use £ (Alt+0163), It displays ú (Alt+163).
Any ideas???
This has to do with the character encodings that your text editor and your terminal are using. If what you see in your editor is not what you see in your terminal output, check the encodings used in the respective configurations. FYI for the pound sign to be at codepoint 163, you are using Windows-1252.
If your command prompt is set to use Raster fonts then your command output is always interpreted using the code page of that font, which in your case is probably 850. If you change your command prompt to use a Unicode font (i.e. Lucida Console) then it will use the active code page which you can change using the chcp command.
Input to the command prompt is also interpreted as the same code page of course, so you can type in echo £>pound.txt
to create pound.txt using code page 850.