i try this code in sql server 2005
declare @userName nvarchar(50)
set @userName='איש2'
print @userName
but i get this
???2
what is the cause?
it look like it replace the Hebrew char to “?”
10x
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the
Nprefix so the string literal is interpreted as unicode not char under the code page of whatever your database’s default collation is