Re: get_innerHTML on body returns ? characters for UNICODE text
- From: "Reddy" <reddy.yn@xxxxxxxxx>
- Date: 14 Sep 2005 23:12:15 -0700
hi craig,
i am also faced with same problem
i am able to solve it with the following code
/// <summary>
/// This method replaces all the characters whose numerical value is
greater than 127 with unicode string
/// </summary>
/// <param name="html">string in which unicode characters has to be
replaced</param>
/// <returns></returns>
private string ProcessUnicode(string html)
{
//Loop through all the characters in the string
foreach(char ch in html)
{
if((int)ch > 127) //numerical value is greater than 127 insert the
unicode string for this
html = html.Replace(ch.ToString(),"&#"+((int)ch).ToString()+";");
}
return html;
}
if you call this method before sving the content with the html wich you
are going to save i hope it will solve your problem
best of luck bye
.
- Follow-Ups:
- Re: get_innerHTML on body returns ? characters for UNICODE text
- From: Craig Swearingen
- Re: get_innerHTML on body returns ? characters for UNICODE text
- References:
- get_innerHTML on body returns ? characters for UNICODE text
- From: Craig Swearingen
- Re: get_innerHTML on body returns ? characters for UNICODE text
- From: Igor Tandetnik
- Re: get_innerHTML on body returns ? characters for UNICODE text
- From: Craig Swearingen
- get_innerHTML on body returns ? characters for UNICODE text
- Prev by Date: Re: how to click at a option programatically
- Next by Date: Event for begin/end of selection in IE Window
- Previous by thread: Re: get_innerHTML on body returns ? characters for UNICODE text
- Next by thread: Re: get_innerHTML on body returns ? characters for UNICODE text
- Index(es):
Relevant Pages
|
|