Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Unicode: issue with representation of Devanagari character (U+0940 and U+0947)

$
0
0

Hello,

I observe issue with representation of Devanagari  characters (U+0940 and U+0947) :

U+0940e0 a5 80DEVANAGARI VOWEL SIGN II
U+0947e0 a5 87DEVANAGARI VOWEL SIGN E

In SQL server database I think DEVANAGARI VOWEL SIGN E is represented as less than to DEVANAGARI VOWEL SIGN II. 

I think it is a bug in SQL Server database, and should be represented in other way round i.e, U+0947 should be represented as >  from U+0940.

The steps to reproduce with T-SQL :

   create table test (c1 int, c2 nvarchar(50))

insert values:

   insert into test(c1, c2) values (1,N'पीपे का सबसे चौड़ा भाग') 
   insert into test(c1, c2) values (2,N'पी') 
   insert into test(c1, c2) values (3,N'पे') 

Fetch records:

sql1: select * from test where c2 > N'पे' order by c2;

2पी
1पीपे का सबसे चौड़ा भाग

// it should not return any row as no row is having value > 'पे'

sql2: select * from test where c2 > N'पी' order by c2;

1पीपे का सबसे चौड़ा भाग

// it should return one more row as 'पे' should be greater than 'पी'.

Thanks,

Mukesh



Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>