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

  • Home
  • SEARCH
  • 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 7974423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:21:59+00:00 2026-06-04T08:21:59+00:00

well i am using all these codes: // StreamWriter file = new StreamWriter(AppSettings.Instance.Dpath +

  • 0

well i am using all these codes:

// StreamWriter file = new StreamWriter(AppSettings.Instance.Dpath + "\\notaventa.txt");

// StreamWriter file = new StreamWriter(AppSettings.Instance.Dpath + "\\notaventa.txt", false, System.Text.Encoding.GetEncoding(1252));
' Dim objEscritor = New StreamWriter("C:\temp\salida_encoding.txt", True, System.Text.Encoding.Default)
// StreamWriter file = new StreamWriter(AppSettings.Instance.Dpath + "\\notaventa.txt", true, System.Text.Encoding.ASCII);

but none work for print

canción

everyone print

canci?n

how can i fix it? i am using

compact framework 3.5

for Hand helds

  • 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-04T08:22:00+00:00Added an answer on June 4, 2026 at 8:22 am

    ASCII does not include support for the ó character. Unless you have compelling reason otherwise, you should always use Unicode:

    System.IO.StreamWriter file = new System.IO.StreamWriter(
        Path.Combine(AppSettings.Instance.Dpath, "notaventa.txt"), true, 
        System.Text.Encoding.UTF8);
    

    Unrelated to your question: You should use Path.Combine (rather than explicit string concatenation) for constructing file paths. It would save you the headache of determining whether to include the leading/trailing \ or not.

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

Sidebar

Related Questions

I'm building out a medium-sized application using Sinatra and all was well when I
hope all is well. I am using Version 7.0. This morning I was struggling
I have created a QDialog based app using Qt Creator and all is well
We've generated some (well a lot) of classes using HyperJAXB. All of the classes
I traverse a 16x16 maze using my own A* implementation. All is well. However,
So I am trying to store the symmetric key using DPAPI. All is well
I've different properties file as shown below: abc_en.properties abc_ch.properties abc_de.properties All of these contain
I have been using LinqToSQL for quite a while as well as using Devart,
Well I am using the following code to take any old image into a
I'm using the well known technique of styling a list box to look like

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.