Losing Unicod chars

Discussion in 'ASP .Net' started by Chip, Sep 12, 2005.

  1. Chip

    Chip Guest

    I was under the impression that all the string and file handling methods in
    vb.net defaulted to UTF-8. I am losing chars and I don't know why.

    Dim fs As New FileStream(MyFilename, FileMode.Open, FileAccess.Read,
    FileShare.None)
    Dim Reader As New StreamReader(fs)
    Dim StrList As String

    If FileExists(MyFilename) Then
    StrList = Reader.ReadToEnd
    Reader.Close()
    fs.Close()

    File being read in: "Las telara├▒as de Carlota"
    After read, StrList = "Las telaraas de Carlota" (note missing "├▒")

    Can anybody help?
    Chip, Sep 12, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jdl1291$pam
    Replies:
    7
    Views:
    604
  2. Kosio

    Floats to chars and chars to floats

    Kosio, Sep 16, 2005, in forum: C Programming
    Replies:
    44
    Views:
    1,246
    Tim Rentsch
    Sep 23, 2005
  3. Hongyu
    Replies:
    9
    Views:
    887
    James Kanze
    Aug 8, 2008
  4. M.Posseth

    receiving ??? chars instead of "special" chars

    M.Posseth, Nov 15, 2004, in forum: ASP .Net Web Services
    Replies:
    3
    Views:
    215
    Dan Rogers
    Nov 16, 2004
  5. Jason C
    Replies:
    4
    Views:
    670
    Morty Abzug
    Jun 26, 2012
Loading...

Share This Page