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 8393195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:43:09+00:00 2026-06-09T19:43:09+00:00

Using ASP’s file system object (FSO), I’m trying to read a txt file with

  • 0

Using ASP’s file system object (FSO), I’m trying to read a txt file with OpenTextFile that contains French characters (e and a with accents for e.g). Those characters come out wrong.

I tried specifying the format to TristateTrue to open the file as Unicode but to no avail.

I’ve been reading about using the ADO Stream object instead but I hoped there would be a way with FSO. Does anyone have any ideas?

  • 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-09T19:43:10+00:00Added an answer on June 9, 2026 at 7:43 pm

    Most likely the file is saved in UTF-8 encoding. The FileSystemObject does not handle UTF-8.

    Either have the file saved as Unicode or use the ADODB.Stream object. The ADODB.Stream has a LoadFromFile method and does support UTF-8.

     Dim s
    
     Dim stream : Set stream = CreateObject("ADODB.Stream")
    
     stream.CharSet = "UTF-8"
     stream.LoadFromFile Server.MapPath("yourfile.txt")
    
     s = stream.ReadAll
    
     stream.Close
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using ASP.net, how do you write ANSI characters to a text file? I need
Using ASP.NET MVC when trying to get the information stored on my Session[objectName] from
Using ASP.NET MVC 2.0, I have an actionlink that is used for comments on
using ASP.NET MVC 1.0 and I have a action that returns a JsonResult and
Using ASP.NET and Windows Stack. Purpose: Ive got a website that takes in over
Using ASP.NET MVC & Spark, I have a view that is listing a number
using ASP.NET MVC, I have a Model, to which I'm attaching attributes so that
Using ASP/VB, I'm trying to get rid of some duplication in a list box
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using asp.net validators, I'd like a control similar to the validation summary, except that

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.