store strings as ASCII rather than UNICODE

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Is it possible to make the compiler store the strings in a
program in ASCII rather than UNICODE? The code needs to
run in a very space-limited environment. Thanks.
 
Tom said:
Is it possible to make the compiler store the strings in a
program in ASCII rather than UNICODE? The code needs to
run in a very space-limited environment. Thanks.

Well, you could just use byte arrays instead, and then when you really
needed them as strings, use Encoding.ASCII.GetString(bytes).
 
Back
Top