473,512 Members | 14,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Lost UTF-8 encoding on all files while converting ASP.NET web from 1.1 to 2.0

Hello,

I'm maintaining a multi language website and have tried to convert it from
ASP.NET 1.1 to 2.0 using Visual Studio 2005. When it had finished, I
noticed, that it converted all my aspx pages to western european codepage.
The original files were saved in UTF-8 (with signature). All my webpages
that require UTF-8 like the Japanese ones are completely destroyed, they
only contain ??????? sequences now between the html tags. :(

How can this happen? And how can I convert my web without losing the UTF-8
encoding? Manually saving more than 1000 files with the new codepage isn't
really an option for me.

Thanks!

Emsi
www.emsisoft.com - a-squared Anti-Malware
Sep 28 '07 #1
4 2256
You should be able to control the output encoding with web.config

<configuration>
<system.web>
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8" />
....

On Sep 28, 4:50 am, "Christian Mairoll" <m...@emsi.atwrote:
Hello,

I'm maintaining a multi language website and have tried to convert it from
ASP.NET 1.1 to 2.0 using Visual Studio 2005. When it had finished, I
noticed, that it converted all my aspx pages to western european codepage.
The original files were saved in UTF-8 (with signature). All my webpages
that require UTF-8 like the Japanese ones are completely destroyed, they
only contain ??????? sequences now between the html tags. :(

How can this happen? And how can I convert my web without losing the UTF-8
encoding? Manually saving more than 1000 files with the new codepage isn't
really an option for me.

Thanks!

Emsiwww.emsisoft.com- a-squared Anti-Malware
Sep 30 '07 #2
re:
!You should be able to control the output encoding with web.config

Yes and, to complete the configuration, the file encoding with :

fileEncoding="utf-8"


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Mike Placentra II" <no***************************@gmail.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
You should be able to control the output encoding with web.config

<configuration>
<system.web>
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8" />
...

On Sep 28, 4:50 am, "Christian Mairoll" <m...@emsi.atwrote:
>Hello,

I'm maintaining a multi language website and have tried to convert it from
ASP.NET 1.1 to 2.0 using Visual Studio 2005. When it had finished, I
noticed, that it converted all my aspx pages to western european codepage.
The original files were saved in UTF-8 (with signature). All my webpages
that require UTF-8 like the Japanese ones are completely destroyed, they
only contain ??????? sequences now between the html tags. :(

How can this happen? And how can I convert my web without losing the UTF-8
encoding? Manually saving more than 1000 files with the new codepage isn't
really an option for me.

Thanks!

Emsiwww.emsisoft.com- a-squared Anti-Malware

Sep 30 '07 #3
Hi,

does that force VS 2005 to save all files with UTF-8 while converting from
VS 2003?
Emsi
www.emsisoft.com - a-squared Anti-Malware

"Juan T. Llibre" <no***********@nowhere.comschrieb im Newsbeitrag
news:eg**************@TK2MSFTNGP03.phx.gbl...
re:
!You should be able to control the output encoding with web.config

Yes and, to complete the configuration, the file encoding with :

fileEncoding="utf-8"
Oct 3 '07 #4
You will find this blog entry by Mikhail Arkhipov very illuminating:

http://blogs.msdn.com/mikhailarkhipo...07/210769.aspx


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Christian Mairoll" <mc@emsi.atwrote in message news:F5**********************************@microsof t.com...
Hi,

does that force VS 2005 to save all files with UTF-8 while converting from VS 2003?
Emsi
www.emsisoft.com - a-squared Anti-Malware

"Juan T. Llibre" <no***********@nowhere.comschrieb im Newsbeitrag news:eg**************@TK2MSFTNGP03.phx.gbl...
>re:
!You should be able to control the output encoding with web.config

Yes and, to complete the configuration, the file encoding with :

fileEncoding="utf-8"

Oct 3 '07 #5

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

Similar topics

0
1173
by: duikboot | last post by:
Hello all, I still can't convert Oracle tables to a Mysql database. See thread: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=utf-8&threadm=mailman....
4
6369
by: Alban Hertroys | last post by:
Another python/psycopg question, for which the solution is probably quite simple; I just don't know where to look. I have a query that inserts data originating from an utf-8 encoded XML file....
38
5695
by: Haines Brown | last post by:
I'm having trouble finding the character entity for the French abbreviation for "number" (capital N followed by a small supercript o, period). My references are not listing it. Where would I...
16
6141
by: lawrence | last post by:
I was told in another newsgroup (about XML, I was wondering how to control user input) that most modern browsers empower the designer to cast the user created input to a particular character...
6
12943
by: Tony G. | last post by:
Hi there, I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i...
22
11917
by: Martin Trautmann | last post by:
Hi all, is there any kind of 'hiconv' or other (unix-like) conversion tool that would convert UTF-8 to HTML (ISO-Latin-1 and Unicode)? The database output is UTF-8 or UTF-16 only - Thus almost...
2
1856
by: richardshen | last post by:
Hi, Where do all the scripts in the script center go? All my job is gone after upgration! Any idea? Thanks.
2
1258
by: Bruce A. Julseth | last post by:
I posted a message sometime around the 5th and 7th of July. Somehow, I have LOST all messages between Jun 10th and July 7th. Is there somehow I can recover these. Or can someone check for my post...
7
3070
by: saroj.yadav | last post by:
As I understand it (correct me, if I am wrong) Unicode came into picture so that a document containing multiple language characters can be supported like somebody can write a document comparing...
23
8164
by: Steven T. Hatton | last post by:
This is one of the first obstacles I encountered when getting started with C++. I found that everybody had their own idea of what a string is. There was std::string, QString, xercesc::XMLString,...
0
7254
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
7373
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
7432
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
7094
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
5079
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
4743
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
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
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.