Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
French characters are not processed well
Message
From
11/06/2006 12:52:55
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
French characters are not processed well
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01128338
Message ID:
01128338
Views:
55
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
Next
Reply
Map
View

Click here to load this message in the networking platform