473,396 Members | 1,853 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.

UTF-8 changes to Windows-1252 in config file

Suddenly, the encoding in my exe.config file changes from UTF-8 to
Windows-1252 every time I try to debug my winform app. This causes the old
application configuration error when I try to debug the app. How can I
finally convince my exe.config file to keep straight?
Nov 20 '05 #1
3 2217
Have you tried making it read-only?
"Lisa" <sp*********@herplace.com> wrote in message
news:Uo********************@eatel.net...
Suddenly, the encoding in my exe.config file changes from UTF-8 to
Windows-1252 every time I try to debug my winform app. This causes the old application configuration error when I try to debug the app. How can I
finally convince my exe.config file to keep straight?

Nov 20 '05 #2
Good idea, but making the config file read-only results in this error
message in the debugger:

app.config: Error copying the application configuration file to the run
directory. Access is denied. Could not copy temporary files to the output
directory.

Grrr
"Stephen" <gr******@bellatlantic.net> wrote in message
news:eL**************@TK2MSFTNGP11.phx.gbl...
Have you tried making it read-only?
"Lisa" <sp*********@herplace.com> wrote in message
news:Uo********************@eatel.net...
Suddenly, the encoding in my exe.config file changes from UTF-8 to
Windows-1252 every time I try to debug my winform app. This causes the

old
application configuration error when I try to debug the app. How can I
finally convince my exe.config file to keep straight?


Nov 20 '05 #3
Lisa,
Are you using VS.NET 2002 or VS.NET 2003?

Where are you setting the format to UTF-8?

Because of the ability to set which version of the runtime should be used,
VS.NET 2003 always replaces the app.config in the output folder.

You need to add your config file to your VS.NET project's root folder as
app.config, it needs to be named "app.config" without the quotes. When you
build your project VS.NET (both 2002 & 2003) will copy the app.config file
from the project root to your output folder and name it appropriately
(myproject.exe.config).

My concern is you have a copy of the app.config in your project, but you
saved a UTF-8 copy in the output folder. Which will cause it to be replaced
when you build. Or you have a UTF-8 app.config in your project & VS.NET is
changing the format when it copies...

Hope this helps
Jay
"Lisa" <sp*********@herplace.com> wrote in message
news:As********************@eatel.net...
Good idea, but making the config file read-only results in this error
message in the debugger:

app.config: Error copying the application configuration file to the run
directory. Access is denied. Could not copy temporary files to the output directory.

Grrr
"Stephen" <gr******@bellatlantic.net> wrote in message
news:eL**************@TK2MSFTNGP11.phx.gbl...
Have you tried making it read-only?
"Lisa" <sp*********@herplace.com> wrote in message
news:Uo********************@eatel.net...
Suddenly, the encoding in my exe.config file changes from UTF-8 to
Windows-1252 every time I try to debug my winform app. This causes the
old
application configuration error when I try to debug the app. How can

I finally convince my exe.config file to keep straight?



Nov 20 '05 #4

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

Similar topics

9
by: lawrence | last post by:
Someone on www.php.net suggested using a seems_utf8() method to test text for UTF-8 character encoding but didn't specify how to write such a method. Can anyone suggest a test that might work?...
38
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...
32
by: Wolfgang Draxinger | last post by:
I understand that it is perfectly possible to store UTF-8 strings in a std::string, however doing so can cause some implicaions. E.g. you can't count the amount of characters by length() | size()....
1
by: stevelooking41 | last post by:
Can someone explain why I don't seem unable to use document.write to produce a valid UTF-8 none breaking space sequence (Hex: C2A0) ? I've tried everyway I've been able to find to tell the...
0
by: Tim Northrup | last post by:
Help! We have DB2 V7.2 (fixpak 12) installed on Windows2003 Server, and the latest V7.2 client installed on another system. The DB2CODEPAGE on all systems is set to 1208, and the database was...
23
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,...
1
by: David Bertoni | last post by:
Hi all, I'm trying to resolve what appears to me an inconsistency in the XML 1.0 recommendation involving entities encoding in UTF-16 and the requirement for a byte order mark. Section 4.3.3...
6
by: archana | last post by:
Hi all, can someone tell me difference between unicode and utf 8 or utf 18 and which one is supporting more character set. whic i should use to support character ucs-2. I want to use ucs-2...
23
by: Allan Ebdrup | last post by:
I hava an ajax web application where i hvae problems with UTF-8 encoding oc chineese chars. My Ajax webapplication runs in a HTML page that is UTF-8 Encoded. I copy and paste some chineese chars...
35
by: Bjoern Hoehrmann | last post by:
Hi, For a free software project, I had to write a routine that, given a Unicode scalar value U+0000 - U+10FFFF, returns an integer that holds the UTF-8 encoded form of it, for example, U+00F6...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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...
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...

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.