473,435 Members | 1,490 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,435 software developers and data experts.

aspx page encoding

z f
Hi,

i run a web application in a commercial hosting.
my web app need encoding of hebrew, but the default encoding on the hosting
(win2003) is english - westren-european, and my pages are being read as
western european encoding even if i add a content-encoding=windows-1255
which should work.
the only solution i found is to save the pages as unicode, but this is
annoying, because there is no option to set the default page encoding in
visual studio 2003, so i have to change it for each page, and sometimes it
changes back.

is there an option that the pages will be read by IIS/asp.net using a
specific encoding in the configuration of the application.
the problem is that when the pages are saved as ascii and using a
windows-1255 encoding as on the development computer, it does not display
correctly.

please advise.
TIA, z.
Nov 19 '05 #1
3 2364
ASP.NET runtime does not use any META information in the file. It uses
fileEncoding attribute that you can specify in web.config file. Have a look
here

http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtskeditingwebconfigfileforwebformsglobalization. asp

If fileEncoding attribute is not specified, ASP.NET runtime reads file in
default OS codepage unless the file has Unicode or UTF-8 signature.

You can work around VS limitation of lack of default encoding by resaving
new file templates in Unicode or UTF-8 with signature. Then VS will respect
file signatures no matter what META element might specify.

Thanks

Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights

On 12/26/04 10:30, in article #W**************@TK2MSFTNGP14.phx.gbl, "z f"
<zi**@info-scope.co.il> wrote:
Hi,

i run a web application in a commercial hosting.
my web app need encoding of hebrew, but the default encoding on the hosting
(win2003) is english - westren-european, and my pages are being read as
western european encoding even if i add a content-encoding=windows-1255
which should work.
the only solution i found is to save the pages as unicode, but this is
annoying, because there is no option to set the default page encoding in
visual studio 2003, so i have to change it for each page, and sometimes it
changes back.

is there an option that the pages will be read by IIS/asp.net using a
specific encoding in the configuration of the application.
the problem is that when the pages are saved as ascii and using a
windows-1255 encoding as on the development computer, it does not display
correctly.

please advise.
TIA, z.

Nov 19 '05 #2
z f
the link does not work, please re-send the link
thanks!

"Mikhail Arkhipov (Microsoft)" <mi******@online.microsoft.com> wrote in
message news:BDF44738.9E95%mi******@online.microsoft.com.. .
ASP.NET runtime does not use any META information in the file. It uses
fileEncoding attribute that you can specify in web.config file. Have a look here

http://msdn.microsoft.com/library/de...us/vbcon/html/ vbtskeditingwebconfigfileforwebformsglobalization. asp

If fileEncoding attribute is not specified, ASP.NET runtime reads file in
default OS codepage unless the file has Unicode or UTF-8 signature.

You can work around VS limitation of lack of default encoding by resaving
new file templates in Unicode or UTF-8 with signature. Then VS will respect file signatures no matter what META element might specify.

Thanks

Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights

On 12/26/04 10:30, in article #W**************@TK2MSFTNGP14.phx.gbl, "z f"
<zi**@info-scope.co.il> wrote:
Hi,

i run a web application in a commercial hosting.
my web app need encoding of hebrew, but the default encoding on the hosting (win2003) is english - westren-european, and my pages are being read as
western european encoding even if i add a content-encoding=windows-1255
which should work.
the only solution i found is to save the pages as unicode, but this is
annoying, because there is no option to set the default page encoding in
visual studio 2003, so i have to change it for each page, and sometimes it changes back.

is there an option that the pages will be read by IIS/asp.net using a
specific encoding in the configuration of the application.
the problem is that when the pages are saved as ascii and using a
windows-1255 encoding as on the development computer, it does not display correctly.

please advise.
TIA, z.


Nov 19 '05 #3
z f
anyway i found it and it worked, thanXXXX!!!!!

"Mikhail Arkhipov (Microsoft)" <mi******@online.microsoft.com> wrote in
message news:BDF44738.9E95%mi******@online.microsoft.com.. .
ASP.NET runtime does not use any META information in the file. It uses
fileEncoding attribute that you can specify in web.config file. Have a look here

http://msdn.microsoft.com/library/de...us/vbcon/html/ vbtskeditingwebconfigfileforwebformsglobalization. asp

If fileEncoding attribute is not specified, ASP.NET runtime reads file in
default OS codepage unless the file has Unicode or UTF-8 signature.

You can work around VS limitation of lack of default encoding by resaving
new file templates in Unicode or UTF-8 with signature. Then VS will respect file signatures no matter what META element might specify.

Thanks

Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights

On 12/26/04 10:30, in article #W**************@TK2MSFTNGP14.phx.gbl, "z f"
<zi**@info-scope.co.il> wrote:
Hi,

i run a web application in a commercial hosting.
my web app need encoding of hebrew, but the default encoding on the hosting (win2003) is english - westren-european, and my pages are being read as
western european encoding even if i add a content-encoding=windows-1255
which should work.
the only solution i found is to save the pages as unicode, but this is
annoying, because there is no option to set the default page encoding in
visual studio 2003, so i have to change it for each page, and sometimes it changes back.

is there an option that the pages will be read by IIS/asp.net using a
specific encoding in the configuration of the application.
the problem is that when the pages are saved as ascii and using a
windows-1255 encoding as on the development computer, it does not display correctly.

please advise.
TIA, z.


Nov 19 '05 #4

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

Similar topics

1
by: Bhupesh Saini | last post by:
I am trying to call a ASPX page using HttpWebRequest class and pass cookie information to it. My ASPX pages gets called just fine, however none of the request cookies are available to the ASPX page....
2
by: sam martin | last post by:
why doesn't IE6 show the response from this page as XML? is the contenttype wrong? Basically, i've got an "empty" aspx page (barring the precompiler line <%@ Page language="c#"...
5
by: z. f. | last post by:
hi, i have a vb.net web application and i make a request using internet explorer to an aspx page. the aspx page size if over 170KB, and the page in internet explorer looks truncated and in the...
7
by: ray well | last post by:
hi, i need to include some non english text in some web from aspx pages, in which i used unicode characters and saved them with unicode encoding (without signature). in regular html only...
1
by: george.miscalencu | last post by:
I'm trying to display a text from a database, text that contains Romanian diacritics (aîst) in a aspx page. The text has been inserted in the database using a asp application with a HTML editor...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.