469,267 Members | 922 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,267 developers. It's quick & easy.

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 8997
"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 discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.