Click here to Skip to main content
15,887,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

I have an report with string parameter for the title, when pass english string it works fine, but when pass arabic string it shows rubbish.

http://social.technet.microsoft.com/Forums/getfile/78420[^]

http://social.technet.microsoft.com/Forums/getfile/78421[^]

windows 2008 server R2, SQL 2008 / SQL 2008 R2,

in window 7 , with SQL 2008 it works fine

But as shown in image , it works fine when run from visual studio ,

Not : Arabic dataset results works fine.

Any Help please.

thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 13-Mar-12 21:43pm    
This part does not look clear:
"Not : Arabic dataset results works fine."
What is fine, what is not, exactly? Any code sample? Exact description of what does not work? How exactly it looks?
--SA
eshezo 14-Mar-12 3:08am    
sorry my mistake
i mean "Note: The result Of the data set "Data source" that come from DB works fine the problem only with parameter"

1 solution

Please see my comment to the question. Arabic script is none of a problem, as everything works with Unicode these days; and Arabic script is very well-known and popular enough to be supported by nearly all modern systems by default.

You only need to use Unicode data type working with texts in SQL servers. You can use nchar, nvarchar, or ntext data types. Please see:
http://msdn.microsoft.com/en-us/library/aa933104%28v=sql.80%29.aspx[^].

So, to start with, make sure you do it properly. As to .NET, it only supports Unicode anyway, unless you screw it up with some tricks… :-)

—SA
 
Share this answer
 
v2
Comments
eshezo 14-Mar-12 3:09am    
My problem Not with SQL results, my problem with arabic parameter
Sergey Alexandrovich Kryukov 14-Mar-12 4:37am    
You did not mention that. And what is "Arabic parameter"? Are your talking about parametrized command (parametrized query)? It this is text, it should be just Unicode string...
--SA

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