[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3022
  • Last Modified:

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

2 Solutions
Pierrick LOUBIERCommented:
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.

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....
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

earth man2Commented:
Windows Registry Editor Version 5.00

"SQLPLUS_FONT"="Lucida Console"

on my system euro is chr(164) WEISO8859P15  sqlplusw green alt '4' will display and show in select    euro symbol.

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now