Problem: two same word below are not equal (try "PHƯỢNG" == "PHƯỢNG" in console)
- PHƯỢNG
- PHƯỢNG
Describe :
The 'Ợ' characeter in the first word is using Combining Diacritical Marks : U+01A0 + U+0323. This is the data from database
While the second one use Latin Extended Additional : U+1EE2. This is the data which has been input by Vietnamese Locale keyboard
The words is in VietNamese
Output : Although having difference in Unicode block, I want to two words above compare to be equaled in Microsoft SQL Server
More information :
SqlCommand
: [Table] COLLATE Vietnamese_CI_AI_KI_WI LIKE N'%'+@Input+'%'
More word to test :
Word : Ế [U+1EBE ] and Ế [U+00CA , U+0301]
- TIẾN
- TIẾN
WORD : Ờ [U+1EDC] and Ờ [U+01A0, U+0300]
- TRƯỜNG
- TRƯỜNG