January 16, 2018 at 2:03 pm
it didn't work, probably something to do with collation, I am on SQL_Latin1_General_CP1_CI_AS
print CONVERT(VARCHAR(3), ASCII('=')) + ' = ' + CHAR(240)
print CONVERT(VARCHAR(3), ASCII(N'=')) + ' = ' + CHAR(240)
January 16, 2018 at 2:21 pm
goher2000 - Tuesday, January 16, 2018 2:03 PMit didn't work, probably something to do with collation, I am on SQL_Latin1_General_CP1_CI_ASprint CONVERT(VARCHAR(3), ASCII('≡')) + ' = ' + CHAR(240)
print CONVERT(VARCHAR(3), ASCII(N'≡')) + ' = ' + CHAR(240)
Try
print nchar(0x2261)
January 16, 2018 at 2:21 pm
goher2000 - Tuesday, January 16, 2018 2:03 PMit didn't work, probably something to do with collation, I am on SQL_Latin1_General_CP1_CI_ASprint CONVERT(VARCHAR(3), ASCII('≡')) + ' = ' + CHAR(240)
print CONVERT(VARCHAR(3), ASCII(N'≡')) + ' = ' + CHAR(240)
You need to use N'≡' instead of '≡'. You need to use UNICODE() instead of ASCII. You need to use NVARCHAR(4) instead of VARCHAR(3).
SELECT CONVERT(NVARCHAR(5), UNICODE(N'≡')) + ' = ' + CHAR(240)
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 17, 2018 at 7:06 am
thanks guys
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply