You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Yan Ma <po...@yahoo.com.cn> on 2006/03/27 07:35:34 UTC

How does derby store multilingual data since NVARCHAR has been removed?

NVARCHAR is not supported in derby10.1.
What is the alternative datatype of NVARCHAR?
Thanks!


	

	
		
___________________________________________________________ 
雅虎1G免费邮箱百分百防垃圾信 
http://cn.mail.yahoo.com/

Re: How does derby store multilingual data since NVARCHAR has been removed?

Posted by "Dag H. Wanvik" <Da...@Sun.COM>.
Daniel John Debrunner <dj...@apache.org> writes:

> To be a little more precise, the only character set for Derby's
> character strings is Unicode. All characters stored in a CHAR, VARCHAR
> or CLOB datatype are Unicode characters with Unicode code points.

Btw, is it not limited to BMP (basic multilingual plane) characters?
All unicode characters can no longer be represented in 16 bits
(supplementary characters since Unicode 3.1 - code points above
U+FFFF). I guess since this was only added to Java in 1.5 (which
supports Unicode 4.0), Derby does not currently handle such
supplementary characters?

http://www.unicode.org/glossary/
http://java.sun.com/developer/technicalArticles/Intl/Supplementary/

Dag

Re: How does derby store multilingual data since NVARCHAR has been removed?

Posted by Daniel John Debrunner <dj...@apache.org>.
Knut Anders Hatlen wrote:

> Yan Ma <po...@yahoo.com.cn> writes:
> 
> 
>>NVARCHAR is not supported in derby10.1.
>>What is the alternative datatype of NVARCHAR?
>>Thanks!
> 
> 
> Derby allows Unicode characters in VARCHARs.

To be a little more precise, the only character set for Derby's
character strings is Unicode. All characters stored in a CHAR, VARCHAR
or CLOB datatype are Unicode characters with Unicode code points.

Dan.



Re: How does derby store multilingual data since NVARCHAR has been removed?

Posted by Knut Anders Hatlen <Kn...@Sun.COM>.
Yan Ma <po...@yahoo.com.cn> writes:

> NVARCHAR is not supported in derby10.1.
> What is the alternative datatype of NVARCHAR?
> Thanks!

Derby allows Unicode characters in VARCHARs.

-- 
Knut Anders