Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have procedure to send mail by ms sqlserver and it work well ,but i have a problem when i write in body arabic language as hard code as @body='الحمد لله' it show as ???????
but if i get body from database as @body=@Container it work well
Posted
Comments
Basmeh Awad 27-May-13 11:30am    
thats what i told you brother..anyway

try writing
SQL
@body=N'الحمد لله'

add capital N without space before the string..
and declare variable as NVARCHAR
 
Share this answer
 
v2
Hi,

I think u declared a variable inside the SP as VARCHAR or CHAR Datatype. You should use Unicode Character Data Type like NVARCHAR or NCHAR[^]
For your references,
Difference Between Sql Server VARCHAR and NVARCHAR Data Type[^]
Regards,
GVPRabu
 
Share this answer
 
thanks for all it solved by
declare nvarchar and put N
as
SQL
declare @reportName nvarchar(50)=N'الحمد لله';
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900