#199666 - 2010-08-26 04:35 PM
Euro Symbol will not display on screen
|
Shuj
Just in Town
Registered: 2010-08-25
Posts: 1
Loc: Spain
|
Whilst I have no problems with putting a Euro symbol (€) in my scripts and outputing it on text files which I can print, I just cannot find any way of displaying the € symbol on screen. Help please!!! Does anyone out there know how to do this?
|
|
Top
|
|
|
|
#199676 - 2010-08-27 04:08 AM
Re: Euro Symbol will not display on screen
[Re: Lonkero]
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4567
Loc: USA
|
|
|
Top
|
|
|
|
#199678 - 2010-08-27 08:22 AM
Re: Euro Symbol will not display on screen
[Re: Allen]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
I wish there was a similar thing to HIDE the Eurovision Songfestival, but yeah...
|
|
Top
|
|
|
|
#199680 - 2010-08-27 09:32 AM
Re: Euro Symbol will not display on screen
[Re: Arend_]
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
You should be able to do this by temporarily changing your code page.
This works for me. Before running it set $iMyCodePage to the right value. You can get it my running "chcp" with no parameters in a DOS window.
$=SetOption("ASCII","ON") ; *** Must be in ASCII mode
$iMyCodePage=850 ; *** Set this to your value - use CHCP at command prompt to see what it is
$iWinCodePage=1252
$iEuro=128 ; *** Don't be tempted to use $Euro=CHR(128) here, it won't work.
"Normal code page, euro character : "+Chr($iEuro)+@CRLF
; Switch to code page with euro support.
Shell "cmd /C chcp "+$iWinCodePage
"Windows code page, euro character: "+Chr($iEuro)+@CRLF
; return to standard code page.
Shell "cmd /C chcp "+$iMyCodePage
|
|
Top
|
|
|
|
#199682 - 2010-08-27 04:50 PM
Re: Euro Symbol will not display on screen
[Re: Allen]
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4567
Loc: USA
|
Richard, did you already have your console font set to Lucida Console? The reason I ask is it appears that with the Raster Fonts, your script outputs
Normal code page, euro character : Ç
Active code page: 1252
Windows code page, euro character: Ç
Active code page: 437
However, with the Lucida Console font, it works right.
Normal code page, euro character : Ç
Active code page: 1252
Windows code page, euro character: €
Active code page: 437
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 320 anonymous users online.
|
|
|