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

Posted on 2004-11-19
Last Modified: 2008-01-09
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

Question by:andym107
    LVL 8

    Expert Comment

    by:Pierrick LOUBIER
    LVL 8

    Expert Comment

    by:Pierrick LOUBIER

    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.


    Author Comment

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

    Accepted Solution

    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

    LVL 22

    Assisted Solution

    by:earth man2
    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    Suggested Solutions

    Title # Comments Views Activity
    Oracle SQL Nested Select 3 50
    oracle 10g table containing BLOBS 3 33
    oem-lookup 9 36
    Oracle PL/SQL syntax 4 30
    Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
    Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
    This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
    This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now