Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
205 views
in Technique[技术] by (71.8m points)

How to split a string containing "u001e" in C#

I need to split a string retrieved from db. The string looks as below. The string "details" is fetched from database, which cannot be updated. The changes can be made only in the C# side.

details =  "Testu001eA01";

I tried 2 methods, but both didnt work out
a) details.Split('\');
b) details.Substring(details.IndexOf(@"") + 1);

Please help.

Thanks, Divya


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...