Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Seems that you just need to change a font in SQL Developer. Check <a href="http://www.sqlfiddle.com/#!4/9b8f8/1" rel="nofollow noreferrer">this SQLFiddle</a>.</p> <p>There are two things wrong in your question text: to get unicode symbol from it's code <a href="http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions091.htm" rel="nofollow noreferrer"><code>nchr()</code></a> function must be used instead of <a href="http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions019.htm#i76965" rel="nofollow noreferrer"><code>chr()</code></a>. Second is that <code>'₹'</code> constant string treated as <code>varchar2</code> and to properly specify <code>nvarchar2</code> constant you <a href="http://docs.oracle.com/cd/B19306_01/server.102/b14225/ch7progrunicode.htm#i1006315" rel="nofollow noreferrer">must prepend <code>N</code></a> to this literal: <code>N'₹'</code> .</p> <p>To change font just open <code>Tools -&gt; Preferences ...</code> menu </p> <p><img src="https://i.stack.imgur.com/0T162.jpg" alt="enter image description here"></p> <p>and choose <code>Code Editor -&gt; Fonts</code> node. At this page you can select font from <code>Font Name</code> dropdown list. Copy and past rupee symbol into <code>Sample Text</code> field to quickly see if font are acceptable. Arial (on win7) works fine for me:</p> <p><img src="https://i.stack.imgur.com/vHLgS.jpg" alt="enter image description here"></p> <p>This setting changes grid font as well as font in code editor:</p> <p><img src="https://i.stack.imgur.com/Umu2I.jpg" alt="enter image description here"></p> <p>Actions above puts you only to a half of the way to get full rupee symbol support because <code>select N'₹' from dual</code> will return only question sign. This is because of query text encoding conversion done between client and server side.<br> To deal with this issue Oracle <a href="http://docs.oracle.com/cd/B19306_01/server.102/b14225/ch7progrunicode.htm#CACHHIFE" rel="nofollow noreferrer">provides ORA_NCHAR_LITERAL_REPLACE environment setting</a>. This setting guides client API to analyze query text for character constants prefixed with <code>N</code> and use special internal format to encode such a data on client side before transferring query text to server. Unfortunately SQL Developer uses Thin JDBC API which ignores this environment setting, so adding this environment variable doesn't solve a problem. </p> <p>But there are <a href="http://docs.oracle.com/cd/B19306_01/server.102/b14225/ch7progrunicode.htm#CHDCBACA" rel="nofollow noreferrer">another way</a> to turn on same behavior with <code>oracle.jdbc.convertNcharLiterals</code> property which acts on a system and connection levels.<br> To turn this property on, locate <code>ide.conf</code> file in <code>sqldeveloper\ide\bin</code> directory in SQL Developer installation folder and add this line to the end of a file:</p> <pre><code>AddVMOption -Doracle.jdbc.convertNcharLiterals=true </code></pre> <p>Save file and restart SQL Developer, all things must work now:</p> <p><img src="https://i.stack.imgur.com/AfiGU.jpg" alt="enter image description here"></p> <p>P.S. Instructions based on SQL Developer Version 3.2, old versions may have another location of configuration file. E.g. <code>sqldeveloper\bin\sqldeveloper.conf</code> .</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload