How do you dislpay the Euro (€) symbol is Oracle's GUI sqlplus tool.

Has anyone discovered a method for displaying the Euro (€) symbol when selected back from a table in Oracle's GUI version of sqlplus? This would appear to be related to the characterset that the tool uses to display reults

andym107Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pierrick LOUBIERIS Operational Excellence ManagerCommented:
0
Pierrick LOUBIERIS Operational Excellence ManagerCommented:
From http://www.oracle.com/technology/tech/sql_plus/htdocs/faq101.html#A4912

How do I display the Euro symbol ("€") in SQL*Plus?
To check if the current font contains the Euro sign, enter the Euro sign's decimal number equivalent in SQL*Plus, Alt+0128. If it appears correctly, the chosen font contains the Euro sign, otherwise you need to try another font.

You can use the Windows Character Map utility to view the characters available in a font. Character Map also shows the decimal number equivalent for extended ASCII characters. You access the Character Map utility by selecting Start, Programs, Accessories and then clicking Character Map.

0
andym107Author Commented:
Thanks - I'm using Arial which contains the euro.  I populate a temporary table thus;

insert into <table name> select chr(14844588) from dual;
insert into <table name> select chr(128) from dual;

I I dun up oracle programs > oracle > sqlplus

select * from <table name>

Unfortunately, no euro is displayed.  I can do it through unix and DOS.  Howewver....
0
JPScandariatoCommented:
Oracle uses two characters sets to displays every character.
The first one is the database character set, if you haven't made any change it should be WE8ISO8859P1  in this character set the euro sign is coded as chr(164).

The second character set is the one used by the client application. in your case the sqlplus GUI, this is in general WE8MSWIN1252 that is the usual windows character set and the euro sign is coded as chr(128).

Normaly Oracle takes care of the translation between the two sets IF (and it's here the problem arises) the client application declares the corect character set. In the GUI sqlplus you can set this through the registry in the key (HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOMExx\) Where xx is the "home number" usualy 0 if you have only one oracle version. In this registry you should find a string named NLS_LANG containing something like AMERICAN_AMERICA.WE8MSWIN1252. The first part is the language, the second the teritory and the third the character set.

To check the character set open sqlplus gui and type alt+128 this should gives you the euro sign.
If it's the case just execute the insert statement. The select result should be correct.

One last remark : the character set used in a DOS console is different from the one used in sqlplus gui.
To have the same character set in DOS just execute the following commands :
1 - Change the console font to Lucida Console (in Properties, Font tab)
2 - execute  the command :    c:\>chcp 1252
3 - execute  the command :    c:\>set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
4 - Launch sqlplus as usual

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
earth man2Commented:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0]
"ID"="0"
"SQLPLUS_FONT"="Lucida Console"
"SQLPLUS_FONT_SIZE"="12"


-------------------------------------------------------------------------------------
on my system euro is chr(164) WEISO8859P15  sqlplusw green alt '4' will display and show in select    euro symbol.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.