Page 1 of 1 1
Topic Options
#199666 - 2010-08-26 04:35 PM Euro Symbol will not display on screen
Shuj Offline
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
#199668 - 2010-08-26 05:59 PM Re: Euro Symbol will not display on screen [Re: Shuj]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what you mean with screen?
dos console?
_________________________
!

download KiXnet

Top
#199676 - 2010-08-27 04:08 AM Re: Euro Symbol will not display on screen [Re: Lonkero]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4567
Loc: USA
Not sure it's possible without some mods... See if this helps.

http://www.columbia.edu/~em36/wpdos/eurodos.html
and
http://www.vbforums.com/showthread.php?t=564852

Top
#199677 - 2010-08-27 04:40 AM Re: Euro Symbol will not display on screen [Re: Allen]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4567
Loc: USA
This may not be the best answer, but here is something that does work.

Open your cmd console. In the upper left corner of the window, right click on the icon, and select Properties. On the Font Tab, Choose the "Lucida Console" font.

Top
#199678 - 2010-08-27 08:22 AM Re: Euro Symbol will not display on screen [Re: Allen]
Arend_ Moderator Offline
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 Offline
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.

 Code:
$=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
#199681 - 2010-08-27 03:39 PM Re: Euro Symbol will not display on screen [Re: Richard H.]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4567
Loc: USA
That's first of CHCP I've heard of... doing a little g-search, reveals that MODE can do this too...

 Quote:

MODE CON CP and CHCP both display the currently active codepage.

And MODE CON CP SELECT=437 and CHCP 437 both set the active codepage to 437.


Pretty cool.

Top
#199682 - 2010-08-27 04:50 PM Re: Euro Symbol will not display on screen [Re: Allen]
Allen Administrator Online   shocked
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

 Code:
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.
 Code:
Normal code page, euro character : Ç
Active code page: 1252
Windows code page, euro character: €
Active code page: 437

Top
#199683 - 2010-08-27 05:19 PM Re: Euro Symbol will not display on screen [Re: Allen]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Yes you're correct - I retested with both fonts and I get the same result that you do.
Top
#199690 - 2010-08-28 03:25 PM Re: Euro Symbol will not display on screen [Re: Allen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
 Originally Posted By: Allen

Pretty cool.

You young pups missed the whole DOS thing, where you HAD to know MODE to set your COM and LPT settings, console color and such..

G-
_________________________
Actually I am a Rocket Scientist! \:D

Top
#199691 - 2010-08-28 06:02 PM Re: Euro Symbol will not display on screen [Re: Glenn Barnas]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4567
Loc: USA
LOL... I'm older than you think... I lived DOS very vividly, thank you very much.
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 320 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.175 seconds in which 0.103 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org