Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regex, Unicode block \u8080 to <b> conversion...???

Status
Not open for further replies.

dal2

Technical User
May 16, 2005
34
US
?Chikago?.kom is ?Chikago?'s Searkh Engine Monday, Oktober 10, 2005 Sky: Mostly Cloudy Temp: 79° More Weather Web ?Chikago?.kom login my akkount email help Hotels ?Chikago? Jobs Events Cars Homes Apartments Restaurants ...

I can convert the c to k but I want to convert the block to bold. The unicode is u8080 and u8081.

// *** Write to file ***

// Specify file, instructions, and privelegdes
FileStream file = new FileStream("C:\\share\\test.txt", FileMode.OpenOrCreate, FileAccess.Write);

// Create a new stream to write to the file
StreamWriter sw = new StreamWriter(file);



//string ublka = "\u8080";
//string bldo = "<b>";

string ublka = "c";
string bldo = "k";


// Write a string to the file
sw.Write(sourceResult.Description.Replace(ublka,bldo));

// Close StreamWriter
sw.Close();

// Close file
//file.Close();

Thanks,
David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top