Results 1 to 3 of 3

Thread: Unicode or what?

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Unicode or what?

    Hello, I've got this problem when I came across saving a text file pasted from a site to a RichTextBox. Example of this character that could cause a problem would be

    The senators are is...

    Note the double quote. It's not an ordinary quote I guess because when saved as
    Code:
    			s = string.Format("<html><head><link rel='stylesheet' href='style.css'></head><body><blockquote>{0}</blockquote></body></html>", s);
    			byte[] content = UnicodeEncoding.Unicode.GetBytes(s);
    			FileStream w = new FileStream(Application.StartupPath + "\\test.html", FileMode.Create);
    			w.Write(content, 0, content.Length);
    s is an RTB.Text. Now when Process.Start("iexplore", "test.html"); the double quote colored red is displayed as a little square. I guess it's implying it's not noticeable.

    Any help? Thanks in advance.
    Last edited by nebulom; Mar 8th, 2006 at 11:09 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width