{"id":41,"date":"2014-07-13T11:08:31","date_gmt":"2014-07-13T11:08:31","guid":{"rendered":"https:\/\/www.spotonoracle.com\/?p=41"},"modified":"2016-05-10T11:11:46","modified_gmt":"2016-05-10T11:11:46","slug":"sql-developer-oddity-on-windows","status":"publish","type":"post","link":"https:\/\/www.spotonoracle.com\/?p=41","title":{"rendered":"SQL Developer oddity on Windows"},"content":{"rendered":"<p>Recently, I have come across a bit of a strange behaviour in SQL Developer when verifying the correctness of the data entered into a database from various clients (Linux \/ Windows \/ Solaris) -&gt; think of client characterset in NLS_LANG.<br \/>\nIn various MOS notes Oracle propagates the use of SQL Developer as a &#8220;known good client&#8221; to check data in the database, e.g. 1628060.1.<br \/>\nThe one thing that struck me was when SQL Deloper displayed a right single quotation mark instead of a blank square symbol &#8220;[]&#8221; (representing a non-printable character).<\/p>\n<p>Before we go to the test case I need to clarify a few points:<\/p>\n<ul>\n<li>Databases tested 11.2.0.3 and 11.2.0.4<\/li>\n<li>All databases running AL32UTF8 database character set<\/li>\n<li>All databases running AL16UTF16 national character set<\/li>\n<li>SQL Developer version tested: 4.0.2.15<\/li>\n<\/ul>\n<p>Now, let&#8217;s look what happens if I run following query:<\/p>\n<pre class=\"brush: sql; collapse: false; title: ; wrap-lines: false; notranslate\" title=\"\">\r\nselect unistr('&#92;&#48;092') char_display, dump(unistr('&#92;&#48;092'), 16) char_dump from dual;\r\n<\/pre>\n<p>Result on Linux:<\/p>\n<p><a href=\"https:\/\/www.spotonoracle.com\/wp-content\/uploads\/2016\/05\/linux_sqldev.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.spotonoracle.com\/wp-content\/uploads\/2016\/05\/linux_sqldev-300x96.png\" alt=\"linux_sqldev\" width=\"300\" height=\"96\" class=\"alignnone size-medium wp-image-42\" srcset=\"https:\/\/www.spotonoracle.com\/wp-content\/uploads\/2016\/05\/linux_sqldev-300x96.png 300w, https:\/\/www.spotonoracle.com\/wp-content\/uploads\/2016\/05\/linux_sqldev-624x199.png 624w, https:\/\/www.spotonoracle.com\/wp-content\/uploads\/2016\/05\/linux_sqldev.png 639w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Result on Windows:<\/p>\n<p><a href=\"https:\/\/www.spotonoracle.com\/wp-content\/uploads\/2016\/05\/windows_sqldev.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.spotonoracle.com\/wp-content\/uploads\/2016\/05\/windows_sqldev-300x91.png\" alt=\"windows_sqldev\" width=\"300\" height=\"91\" class=\"alignnone size-medium wp-image-43\" srcset=\"https:\/\/www.spotonoracle.com\/wp-content\/uploads\/2016\/05\/windows_sqldev-300x91.png 300w, https:\/\/www.spotonoracle.com\/wp-content\/uploads\/2016\/05\/windows_sqldev-624x190.png 624w, https:\/\/www.spotonoracle.com\/wp-content\/uploads\/2016\/05\/windows_sqldev.png 638w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Basically, I&#8217;m asking the system to display Unicode code point U+0092 which is a private control character and is not associated with a printable symbol.<br \/>\nIn my opinion the Linux version is returning the right result while the one on Windows clearly does some code page conversion.<br \/>\nSo, if you&#8217;re running SQL Developer on Windows it might no longer be a &#8220;known good client&#8221; as for sure the result as shown is unexpected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I have come across a bit of a strange behaviour in SQL Developer when verifying the correctness of the data entered into a database from various clients (Linux \/ Windows \/ Solaris) -&gt; think of client characterset in NLS_LANG. In various MOS notes Oracle propagates the use of SQL Developer as a &#8220;known good [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-sqldev"],"_links":{"self":[{"href":"https:\/\/www.spotonoracle.com\/index.php?rest_route=\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.spotonoracle.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spotonoracle.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spotonoracle.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spotonoracle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41"}],"version-history":[{"count":5,"href":"https:\/\/www.spotonoracle.com\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":48,"href":"https:\/\/www.spotonoracle.com\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions\/48"}],"wp:attachment":[{"href":"https:\/\/www.spotonoracle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spotonoracle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spotonoracle.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}