Print Thread
Unicode Support
#4843 04/21/03 07:31 AM
Joined: Dec 2000
Posts: 31
MA, USA
B
Member
OP Offline
Member
B
Joined: Dec 2000
Posts: 31
MA, USA
Hi Marco,

I want to run the following query:
select nchr(1513) from dual;
under Oracle 9i and get back a unicode character (it's a hebrew character that looks like a styleized 'W' that I'm using for testing.) I can't seem to get this back using DOA (I'm using some Unicode aware controls and have been able to just display the character without using DOA.) I have been able to get the above query to work using a web page and ASPDotNet (with the Oracle .Net data provider.) Any thoughts on this? My nchar characterset is set for UTF-16 and I'm doing this on Windows XP. I've tried setting BytesPerChar to autodetect as well as other values with no changes. The normal (non nchar) dataset I'm using is a single byte charset.

Thanks,

Mark Ford
Benthic Software


[This message has been edited by benthicsoftware (edited 21 April 2003).]


Mark Ford
Benthic Software
Re: Unicode Support
#4844 04/22/03 03:08 PM
Joined: Aug 1999
Posts: 22,214
Member
Offline
Member
Joined: Aug 1999
Posts: 22,214
Direct Oracle Access doesn't do anything with the character data, it is returned as is. What bytes do you get back when you select nchr(1513)?

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations
Re: Unicode Support
#4845 04/22/03 06:11 PM
Joined: Dec 2000
Posts: 31
MA, USA
B
Member
OP Offline
Member
B
Joined: Dec 2000
Posts: 31
MA, USA
I get a single byte chr(191). This is the actual data in the buf field of the TFieldData object in the FieldByIndex call. Does it work for you? Does DOA support nchar/nvarchar types?

Thanks,

-Mark


Mark Ford
Benthic Software
Re: Unicode Support
#4846 04/23/03 06:52 PM
Joined: Aug 1999
Posts: 22,214
Member
Offline
Member
Joined: Aug 1999
Posts: 22,214
There is no explicit support for nchar, and I think the character data is converted to the character set specified in NLS_LANG. Setting NLS_LANG to a character set that supports your hebrew characters might fix this.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations
Re: Unicode Support
#4847 04/23/03 09:13 PM
Joined: Dec 2000
Posts: 31
MA, USA
B
Member
OP Offline
Member
B
Joined: Dec 2000
Posts: 31
MA, USA
Hi Marco,

Thanks. I have done some research and managed to rewrite InternalDescribe and InternalDefine to handle nchar types as unicode (a few other changes were needed as well.) It seems to work so far!

-Mark


Mark Ford
Benthic Software

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.060s Queries: 14 (0.007s) Memory: 2.5138 MB (Peak: 3.0393 MB) Data Comp: Off Server Time: 2024-05-09 12:40:08 UTC
Valid HTML 5 and Valid CSS