User Profile

Collapse

Profile Sidebar

Collapse
oveshot16
oveshot16
Last Activity: Apr 10 '09, 01:45 PM
Joined: Apr 9 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • oveshot16
    replied to How to get rid of mysterious  char
    In case anyone stumble upon this, after much searching I have found a fix for this problem even thoughI don't know exactly how it works

    I changed my code to look like this

    Code:
    StreamWriter sw2= new StreamWriter("Devices.FIL", true, Encoding.GetEncoding("ISO-8859-15")); 
    
    string  DegreeC = "°C"; 
      
    IO_file = "t_01_0" + CBA41G1Bus.Text + "_"
    ...
    See more | Go to post
    Last edited by PRR; Apr 10 '09, 04:35 AM. Reason: Please post code in [code] [/code] tags.

    Leave a comment:


  • oveshot16
    started a topic How to get rid of mysterious  char

    How to get rid of mysterious  char

    When I am writing the degree symbol to a text document using the streamwriter it shows up with a Mysterious  in front of it. I know this has something to do with its encoding but I am new to encoding in general and Have no idea how to work it. here is my code

    Code:
    StreamWriter sw2;
    sw2 = File.CreateText("DB\\ioSys.FIL");
    string  DegreeC = "°C";
    
    IO_file = "t_01_0" + CBA41G1Bus.Text
    ...
    See more | Go to post
No activity results to display
Show More
Working...