Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get French characters?
Message
De
09/01/2005 15:32:01
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
How to get French characters?
Divers
Thread ID:
00975526
Message ID:
00975526
Vues:
53
I have this function to dump a file into a variable.
    ' FileToStr() VFP equivalent
    ' expC1 File name
    Public Shared Function FileToStr(ByVal tcFileName As String) As String
        Dim loFile As IO.StreamReader
        Dim lcString As String
        lError = False
        cError = ""
        Try
            loFile = New IO.StreamReader(tcFileName)
            lcString = loFile.ReadToEnd()
            loFile.Close()
        Catch loError As Exception
            cError = loError.Message
            lError = True
            lcString = ""
        End Try
        Return lcString
    End Function
But, I am loosing my French characters. What should I modify in this function to preserve them?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform