Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
French characters are not processed well
Message
De
11/06/2006 12:52:55
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
French characters are not processed well
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01128338
Message ID:
01128338
Vues:
60
In this method:
        ' FileToStr() VFP equivalent
        ' expC1 File name
        Public Function FileToStr(ByVal tcFileName As String) As String
            Dim loFile As IO.StreamReader
            Dim lcString As String
            Try
                loFile = New IO.StreamReader(tcFileName, System.Text.Encoding.Default)
                lcString = loFile.ReadToEnd()
                loFile.Close()
            Catch loError As Exception
                oApp.ErrorSetup(loError)
                lcString = ""
            End Try
            Return lcString
        End Function
If the file being read contains some French characters, they are being shown really weird on the page. What adjustment would be needed to assure a proper encoding?
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