Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get French characters?
Message
From
09/01/2005 15:32:01
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
How to get French characters?
Miscellaneous
Thread ID:
00975526
Message ID:
00975526
Views:
54
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
Next
Reply
Map
View

Click here to load this message in the networking platform