Unicode codes automatically replaced with their characters

G

Guest

I was working on an html document in Polish using VS.NET. There are several
special diacritic characters in Polish which I wanted to insert using
&unicode; I would like to keep the codes rather than the characters they
represent in order for the document to be displayed properly on any machine,
not just mine. However, when switching between modes in VS or saving and
opening the files, the entered unicodes are replaced automatically with the
corresponding characters.

Later I tried to post a question in VS.NET group and discovered that a
&code; string I used as an example was also replaced with the corresponding
character, so it is not the VS problem, but perhaps Windows. It was on W2K
pro system, IE 6.0 and VS 2003 with all current updates and SPs.

Question: how to preserve original &code; strings in my documents? Any
other suggestions? Or, if this is not the right place, where to post the
above question?

Thanks,
 
A

Andrew Morton

JanAdam said:
I was working on an html document in Polish using VS.NET. ...
Question: how to preserve original &code; strings in my documents?

ISTR that in the <%@ Page ContentType="text/html"
ResponseEncoding="utf-8"... %> part, you need to change the
ResponseEncoding to something that doesn't support those characters, like
ASCII.

Andrew
 
G

Guest

That is clever, thank you. I will try it next time. This time I edited all my
files in WordPad, manually (edit -> replace) reinserting the codes into the
final files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top