ARTICLE AD BOX
My program received API response from an external as a string, and their response always contains unicode ex.
\u2019s, \u2014 it\u2019s often these details that make the driving experience not just functional but pleasurable. Investing time in choosing the right wiper refill is akin to dotting the i's and crossing the t's\u2014once done, it\u2019s immensely satisfying.The string is later passed though this to transform to CSV:
private static string ConvertToCsv(List<CsvResponse> records) { using (var writer = new StringWriter()) using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture)) { csv.WriteRecords(records); return writer.ToString().TrimEnd('\r','\n'); } }\Those unicode became special characters in CSV, ex.
"it\u2019s" --> "it’s often"Any advice how I can handle this?
