By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,288 Members | 1,069 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,288 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
4 Replies

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.