473,232 Members | 1,556 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,232 software developers and data experts.

Arabic & ASP

j1c
What do I need to do in my ASP pages to display Arabic content? Does
anything need to be done to the webserver too [iis6]?
tx

Jul 22 '05 #1
18 9480
"j1c" <ju********@yahoo.ca> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
What do I need to do in my ASP pages to display Arabic content? Does
anything need to be done to the webserver too [iis6]?
tx


Hi,

If you have a US windows version, you need to be sure that your pages do
have the following tag
at the first line of your pages.
<%@ LCID=1025 CodePage= 28596%>

<%
Response.CharSet = "iso-8859-6"
%>
Second, you should save the HTML content as UTF-8 or arabic codepage. The
last thing is not needed, if you have an Arabic Windows build.

If you decide -not- to support UTF-8 (this is the international ALL
containing charset for all languages) but you decide to use the Arabic ISO
format, you'll also want to use this inside your ASP scripts
if you want UTF-8 support, you'll need this

<%@ LCID=1025 CodePage=65001%>
<%
'somewhere at the top of your ASP scripts
Response.CharSet = "utf-8"
%>

--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm

Jul 22 '05 #2
j1c
great! thank you!

Jul 22 '05 #3
j1c
Odd thing is that the Arabic in my include files are displaying just
fine however data that I'm insertting into the forms is returning as
??????????

Jul 22 '05 #4
j1c
Odd thing is that the Arabic in my include files are displaying just
fine however data that I'm insertting into the forms is returning as
??????????

Jul 22 '05 #5
Gazing into my crystal ball I observed "j1c" <ju********@yahoo.ca> writing
in news:11**********************@f14g2000cwb.googlegr oups.com:
Odd thing is that the Arabic in my include files are displaying just
fine however data that I'm insertting into the forms is returning as
??????????


This is a client side issue, and better discussed in a client side group,
perhaps alt.html - however, the accept-charset might be the issue
<http://www.w3.org/TR/html4/interact/forms.html#adef-accept-charset> might
be able to give you some help.

--
Adrienne Boswell
Please respond to the Group so others can share
Jul 22 '05 #6
"j1c" <ju********@yahoo.ca> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Odd thing is that the Arabic in my include files are displaying just
fine however data that I'm insertting into the forms is returning as
??????????


You should enable arabic client side support before expecting a good result.
The server does already support (Win2000 and win2003) unicode so it is not
necesarry for the server to display arabic, only to process the data.

Jul 22 '05 #7
j1c
No I do not think it is client side....... for some reason my English
version accepts & displays the Arabic just fine, but the specific
Arabic forms will not. They forms themselves are in Arabic, but when
the data is posted the words turn into question marks. However when I
paste the same data into the EN version of the form the Arabic content
sticks. BOTH forms are using UTF-8 charsets.

Thanks for the link - I will check it out.. maybe something is
overlooked.

Jul 22 '05 #8
j1c
I have the language packs installed (WinXP). What else is required?

Jul 22 '05 #9
j1c
also. if I replace the words with their coded equivalents..
ي for exmaple... everything works fine ... but as soon as the
words go back in ... back come the ?'s

Jul 22 '05 #10
"j1c" <ju********@yahoo.ca> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
I have the language packs installed (WinXP). What else is required?


If you added the arabic language packs nothing else is required.

Re-engineer your whole solution.
- pages should be saved as utf-8 Saving it as utf-8 is an operation that you
must be aware of. In notepad it's in the 'Save As' dialog where you have the
encoding listbox.

- asp pages should include the utf-8 server side header (I told you about
this).
- clients should support arabic fonts

Jul 22 '05 #11
j1c
I resaved them all as utf-8 and that fixed it ...thanks

Jul 22 '05 #12
j1c
I resaved them all as utf-8 and that fixed it ...thanks

Jul 22 '05 #13
j1c
Sorry I did not mention this.. but when I saved the file as UTF-8 in
notepad, then execute that file as an include the server threw an error
... unable to process utf-8 or something to that effect.

Jul 22 '05 #14
You need to separate you script code from your Arabic text. IIS does not
support UTF-8 or Unicode ASP files (maybe IIS 6 does). Put your Arabic in a
database or separate text files. Read it in with ADO or scripting.filesystem
object then use response.write to send it to the browser (after setting
codepage and character sets appropriately).

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"j1c" <ju********@yahoo.ca> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Sorry I did not mention this.. but when I saved the file as UTF-8 in
notepad, then execute that file as an include the server threw an error
.. unable to process utf-8 or something to that effect.

Jul 22 '05 #15
"j1c" <ju********@yahoo.ca> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Sorry I did not mention this.. but when I saved the file as UTF-8 in
notepad, then execute that file as an include the server threw an error
.. unable to process utf-8 or something to that effect.


Sorry to hear that. I think (am sure, in fact), your task will be a breeze
when you would use ASP.NET.

Jul 22 '05 #16
j1c
Yeah ... I know :) But I had to bolt this onto an existing ASP app ....

Jul 22 '05 #17
j1c
BTW, how do I get the periods in the Arabic paragraphs to appear on the
left hand side rather than the right?

Jul 22 '05 #18
j1c
dir="rtl"

Jul 22 '05 #19

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: thinkfirst | last post by:
Hello CIWAH ... I want to propose full internationalization of three related websites: http://africadatabase.org/ http://people.africadatabase.org/ http://institutions.africadatabase.org/ My...
5
by: Jukka K. Korpela | last post by:
The HTML specifications define the entities &zwj;, &zwnj;, &lrm;, &rlm; as denoting zero-width joiner, zero-width non-joiner, left to right mark, and right to left mark. Is there any evidence of...
0
by: Mutley | last post by:
I am finding an issue with the current DropDownList and ListBox ASP.NET Web Controls. I had a system set up for Arabic and a string that I put into a drop down contained a number. The letters were...
2
by: PrateekArora | last post by:
Hi Guys, I need to develop a MultiLingual Application (Arabic & English) in VB.NET, as far as Labels and captions are concerned in User Interface I am done with that using Resource Manager Class &...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.