Unicode codes automatically replaced with their characters

G

Guest

Guest
Archived from groups: microsoft.public.win2000.general (More info?)

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,
--
JanAdam
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.general (More info?)

JanAdam wrote:
> 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

Guest
Archived from groups: microsoft.public.win2000.general (More info?)

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.
--
JanAdam


"Andrew Morton" wrote:

> JanAdam wrote:
> > 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
>
>
>