Print Thread
Page 1 of 2 1 2
Unicode Configuration
#64250 09/28/22 11:17 AM
Joined: Feb 2017
Posts: 15
D
Dave P Offline OP
Member
OP Offline
Member
D
Joined: Feb 2017
Posts: 15
I'm hoping I've got a config setting wrong somewhere, but I've been stuck with a client issue, that I've found wasn't the application that I'm supporting. I've boiled it down to the following:

If I run the following SQL from either a SQL or Command window

select 'Ş' from dual;

The results window displays

S

If I run this from Oracle SQL Developer, it displays correctly.

Is there something I need to change to make the display correct?

Re: Unicode Configuration
Dave P #64253 09/29/22 08:59 AM
Joined: Aug 1999
Posts: 22,196
Member
Offline
Member
Joined: Aug 1999
Posts: 22,196
This indicates that the NLS_LANG for the Oracle Client is either missing, or specifies a character set that is incompatible with the 'Ş' character.

You can go to Preferences > Oracle > Connections, add a new variable, select NLS_LANG, and select a "language_territory.characterset" value that specifies UTF8 for the character set. You will need to restart PL/SQL Developer before this takes effect.


Marco Kalter
Allround Automations
Re: Unicode Configuration
Marco Kalter #64255 09/29/22 09:37 AM
Joined: Feb 2017
Posts: 15
D
Dave P Offline OP
Member
OP Offline
Member
D
Joined: Feb 2017
Posts: 15
Thanks Marco. I can't find a global setting for the instant client, so I've added it under preferences, and that's fixed the issue.

Re: Unicode Configuration
Dave P #64775 08/24/23 12:28 PM
Joined: Oct 2007
Posts: 18
Spain
Member
Offline
Member
Joined: Oct 2007
Posts: 18
Spain
Hi.

I am working with Unicode characters and using the settings from previous posts in PLSQL Developer 15, overall it works fine. But I found that 4 byte Unicode chars don't always display correctly.

A query like this, that have a 'christmast tree' (4byte Unicode char)

Code
select 'A Ñ ã ø 会 ☎ 🎄' from dual;

display garbage as output. But If you remove 'christmast tree' the output shows all the characters properly.

Going one step further, executing a query like this (SELECT 1), that returns same characters that the previous one:

Code
select UNISTR('A Ñ \00E3 \00F8 \4F1A \260E \D83C\DF84') from dual;

Output is showing all the characters properly

But if you copy the value returned and paste as the string of a new SELECT from dual query (SELECT 2), garbage it's displayed again in output. But, incredibly, the header is showing all the characters properly (see images attached).

Regards,
ifernand

Attached Files
SELECT_1.gif (9.89 KB, 74 downloads)
SELECT_2.gif (7.47 KB, 74 downloads)
Re: Unicode Configuration
Dave P #64777 08/25/23 09:26 AM
Joined: Aug 1999
Posts: 22,196
Member
Offline
Member
Joined: Aug 1999
Posts: 22,196
Maybe this is an environment problem. Can you start PL/SQL Developer without connecting, go to Help > Support Info and send me the text from the "Info" tab page?


Marco Kalter
Allround Automations
Re: Unicode Configuration
Marco Kalter #64778 08/28/23 11:23 AM
Joined: Oct 2007
Posts: 18
Spain
Member
Offline
Member
Joined: Oct 2007
Posts: 18
Spain
I have attached a file with "Info" tab.

Attached Files
info.txt (2.07 KB, 1 downloads)
SHA1: eaea3ec76dd5a87a2b16eeb964966ebc37ff03da
Re: Unicode Configuration
Dave P #64788 09/12/23 12:32 PM
Joined: Oct 2007
Posts: 18
Spain
Member
Offline
Member
Joined: Oct 2007
Posts: 18
Spain
Any news about this?

Re: Unicode Configuration
Dave P #64790 09/13/23 08:21 AM
Joined: Aug 1999
Posts: 22,196
Member
Offline
Member
Joined: Aug 1999
Posts: 22,196
My apologies, I missed this. And unfortunately my request was not quite correct. Can you send me the "Info" text while connected to this database?


Marco Kalter
Allround Automations
Re: Unicode Configuration
Dave P #64795 09/18/23 07:30 AM
Joined: Oct 2007
Posts: 18
Spain
Member
Offline
Member
Joined: Oct 2007
Posts: 18
Spain
"Info" when connected attached.

Attached Files
info.connected.txt (2.29 KB, 2 downloads)
SHA1: edc00b3de20baaad486ff5e8e24f87238b909f76
Re: Unicode Configuration
Dave P #64796 09/18/23 08:59 AM
Joined: Aug 1999
Posts: 22,196
Member
Offline
Member
Joined: Aug 1999
Posts: 22,196
Thanks. I see that your NLS_LANG is defined as SPANISH_SPAIN.UTF8. Can you change this to SPANISH_SPAIN.AL32UTF8 and try again? You can make this change through Preferences > Oracle > Connection by adding or changing the NLS_LANG variable under the "Environment Variables" section.


Marco Kalter
Allround Automations
Page 1 of 2 1 2

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.098s Queries: 19 (0.045s) Memory: 2.5604 MB (Peak: 3.0377 MB) Data Comp: Off Server Time: 2024-04-18 07:32:02 UTC
Valid HTML 5 and Valid CSS