store strings as ASCII rather than UNICODE

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.
 
J

Jon Skeet [C# MVP]

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).
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top