Re: Replacing characters in WEB text
- From: "Joerg Jooss" <news-reply@xxxxxxxxxxxxx>
- Date: Sat, 22 Oct 2005 02:05:45 -0700
expertware@xxxxxxxxx wrote:
> Dear Joerg and other readers,
>
> I have a couple of question:
> - If I understand well you are suggesting it is better I continue
> using my own function, to be sure all chars
> are encoded correcly. Right ?
Probably. As I said, write a little test and see if HtmlEncode()
encodes all characters you need. If it does, use it.
> - another one regards the FixStringForWEB() function itself
> Do you think it it more convenient to scan the string once
> replacing the chars, or the approach or iterate replace
> using stringbuilder is more appropriate ?
I'd still say you don't need that method at all. You can use all these
characters natively (without HML encoding) in your C#, HTML, or XHTML
source files. By default, ASP.NET uses UTF-8 as request and response
encoding, which is good enough for your purposes. The only thing you
might need to change is fileEncoding in web.config.
Cheers,
--
http://www.joergjooss.de
mailto:news-reply@xxxxxxxxxxxxx
.
- Follow-Ups:
- Re: Replacing characters in WEB text
- From: expertware
- Re: Replacing characters in WEB text
- References:
- Replacing characters in WEB text
- From: expertware
- Re: Replacing characters in WEB text
- From: expertware
- Re: Replacing characters in WEB text
- From: expertware
- Replacing characters in WEB text
- Prev by Date: Re: Broadcasting message to a machine
- Next by Date: Re: Design Question. C/S Threads & AppDomains
- Previous by thread: Re: Replacing characters in WEB text
- Next by thread: Re: Replacing characters in WEB text
- Index(es):
Relevant Pages
|