Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9187761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:51:13+00:00 2026-06-17T19:51:13+00:00

I have a client who has asked us to write a c# application that

  • 0

I have a client who has asked us to write a c# application that takes data from their database and output it to a .csv file. So far so good.

This DB contains some unicode characters and when the client opens up the .csv with Excel those characters look “weird”. Ex: x0096 looks like an A with a carrot on top next to the Euro currency sign, when the client thinks it should look like a Dash.

So I have been asked to make those characters look “not wierd”.

I have written code for each weird character (I have like 12 of the below lines).

input = input.Replace((char)weirdCharacter, (char)normalCharacter);

There has got to be a better way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:51:14+00:00Added an answer on June 17, 2026 at 7:51 pm

    I had the same problem when I was generating HTML files. The solution for me was to change the encoding of my output file.

    StreamWriter swHTMLPage = 
                    new System.IO.StreamWriter(OutputFileName, false, Encoding.UTF8);
    

    Once I added the Encoding.UTF8 parameter the characters started displaying correctly. I don’t know if this can be applied to your solution though since Excel is involved, but I am betting it can be.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client who got a zipped file that has all the database
I have a client who has a VB 6.0 application with MS Access as
I have a client who has a sort of data warehouse stored in DB2.
We have a client who has many branches around the UK. Some of their
I have a client who has a custom visualforce page that is embedded on
I have a new client who has asked me to make some label changes
A client has asked that their home page begin blank (only the logo and
We have a client who has just recently acquired their first SharePoint 2010 system.
I have a client who wants a feature on his site that he has
I have a client who has made a 'Visual Diary' of photographs that he

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.