Sunday, March 11, 2012

Arabic Language not work fine when I work with project enable AJAX

I have no experience with Arabic languages (yet :)) but have you saved your aspx page with the correct encoding (utf-8 or windows-1256)? Use "advanced save option" for setting the encoding for your file.


hello.

have you checked the globalization support in ajax?


Luis, What configuration for globalization support is used in application in Portugues, when Characters Special are used ?

hello.

well, normally you won't face any problems with the default configuration but if you're passing special values on the query strings you might need to set the encodings in the web.config file. if you're using localization features of asp.net then you might need to look at the culture and cultureui attributes.


Hi,

I'm using Hungarian, English, Slovak languages in my application. For database I'm using SQL2005, and all text fields are nvarchar or ntext (so it's unicode). I have no problem at all, my pages are correct and even mixed language content are correct. I haven't got and needed any specific setting for ajax. My settings:

In the web config:

<globalizationrequestEncoding="utf-8"responseEncoding="utf-8"fileEncoding="utf-8"responseHeaderEncoding="utf-8"enableBestFitResponseEncoding="false"culture="en-US"uiCulture="en-US"/>

My aspx pages are saved saved with unicode (UTF-8 with signature). Each aspx's header contains the following:

<

headrunat="server"><metahttp-equiv="Content-Type"content="text/html; charset=utf-8"/>.....

</

head>

In the code behind (in fact in a base class) I had override the InitializeCulture event and I'm set the culture for the current thread (this is only necessary if you need automatic culture specific formating, for example if you call ToString( ) for a datetime you get different result based on the current thread's culture).

Query strings could be a problem as Luis mentioned, but I've never tried to use anything other than English for a query string.

I'm not sure that these enough for an Arabic language, but maybe...

Also worth to checkwww.unicode.org.


hello.

one thing: i'd discard the meta and use the header instead. using the meta breaks when you use the xmlhttprequest object :(


Hi

I add this tag to (aspx) page and this solve the problem from just the (aspx) pages

<metahttp-equiv="Content-Type"content="text/html; charset=windows-1256"/>

But the user control (ascx) pages still face the same problem

So what is the equivalent tag to use with the user control (ascx) pages to change it's encoding

thanks

FRaas:

Hi

I am working with project support AJAX but any static information (Arabic language) not appear fine, but any information (Arabic language) coming from the database appear fine
I already add this line of code to my [web.config] file

<system.web>
<globalization requestEncoding="windows-1256" responseEncoding="windows-1256" fileEncoding="windows-1256" />
</system.web
But this is not solve the problem
Any one have any suggestion about how to support the Arabic language with project enable AJAX ??

And thanks with my best regarding

Try the Arabic aspx content encoding link from MSDN, it also includes page layout and other things you need for right to left language. Hope this helps.

https://www.microsoft.co.ke/middleeast/msdn/arabicsupp.aspx#7


Hi,

There is no meta alternative for ascx.

You could try however in your page/usercontrol codebehind to set (for example in the Page_Load):

this.Response.ContentType = "text/html; charset=windows-1256";

I think that was Luis suggestion also (if you put this in your aspx Page_Load, probably you don't need the meta stuff at all)

No comments:

Post a Comment