473,503 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9548
"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
8319
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
8632
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
1235
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
5424
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 &...
0
7201
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6988
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.