title: Why using ADODB.Stream with ASCII charset special chars as ä are converted to a?
body: <p>I'm having a problem trying to output the content of some variables in vb6 into a text file. The thing is that when a special character from extended ASCII appears as ä, ü, á it is transformed in the output to the matching basic ASCII char like a, u, a.</p>
  
  <p>I've tried to export it like UTF-8 and then the character is shown correctly, but I need the output to be ASCII. Also, looks strange for me that the filename can normally contain this chars (ä, ü, á...) without sustitution.</p>
  
  <p>Can this be because "ASCII" charset is just the basic and not the extended? Maybe because of the CodePages configured in Windows? I've tried with a couple of them (German, English) with the same result.</p>
  
  <p>This is the code I'm using:</p>
  
  <pre><code>Set fileStream = New ADODB.Stream
  If Not fileStream Is Nothing Then
      inputString = textPreAppend + inputString
      fileStream.charSet = "ASCII"
      fileStream.Open
      fileStream.WriteText inputString
      fileStream.Flush
      fileStream.SaveToFile fileName, adSaveCreateOverWrite
      fileStream.Flush
      fileStream.Close
  End If
  Set fileStream = Nothing
  </code></pre>
  
  <p>Thanks in advance!</p>