473,396 Members | 1,834 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,396 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 9528
"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 &...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.