ASP.NET - Typing Arabic unicode in asp.net using java script

Asked By bharath kumar on 13-Mar-12 08:20 AM
Earn up to 20 extra points for answering this tough question.
Hi Friends I need to type arabic font with normal textbox in asp.net 
with java script

please help
D Company replied to bharath kumar on 13-Mar-12 10:45 AM
Hello Friend ,

Couple of things that u have to do, before that i know only that u can write in any language but i never tried for Arabics.
Well, lets try

1.) first thing that u have to do is set charset to utf 8, like this
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

2.) second u have to enabled right to left righting option of the text box(this is the property of text box)

3.)u have to enable right to left writing option from OS as well
Go to control panel -> regional settings -> language tab, and check the box 'install files for complex scripts and right to left languages.' This installs files from the Windows CD

Follow this article
http://www.microsoft.com/middleeast/msdn/WinFormsAndArabic.aspx

and also go through this fixed thread// check this, it has some good information related to this
http://www.webdeveloper.com/forum/showthread.php?t=94245


Regards
D
[)ia6l0 iii replied to bharath kumar on 13-Mar-12 12:16 PM
First of all, you need a resource file that contains the Arabic representations of all your words. Something like, resourcefilename.ar.resx.

For all other stuff that you need to do, refer these three MSDN articles. They have good examples and coverage as well.
http://msdn.microsoft.com/en-us/magazine/cc163566.aspx
http://msdn.microsoft.com/en-us/library/6eedwbtt.aspx
http://msdn.microsoft.com/en-us/library/twe16yc2.aspx

Hope this helps.

Mihir Soni replied to bharath kumar on 13-Mar-12 11:54 PM
Hello,

You can  have look on below link which has list of unicode for arabic.

http://www.alanwood.net/unicode/arabic.html 


Somesh Yadav replied to bharath kumar on 14-Mar-12 07:13 AM
try to use resource files as http://quickstarts.asp.net/QuickStartv20/aspnet/doc/localization/localization.aspx
and/or also you can detect it programmatically and change elements directions (RTL, LTR)
 
example resource :


<form id="frmExample"  runat="server" dir="<%$ Resources:myrsx, dir %>"></form>

 
or programmatically :


Me.pnlExample.Direction = ContentDirection.RightToLeft
bharath kumar replied to Somesh Yadav on 15-Mar-12 03:29 AM
i need to type  unicode with javascript