ANSI - output with phobos
    Deewiant 
    deewiant.doesnotlike.spam at gmail.com
       
    Thu Apr  5 06:54:26 PDT 2007
    
    
  
Don Clugston wrote:
> Deewiant wrote:
>> One might have to output a string without knowing its encoding, thus
>> making it
>> impossible to convert it to a UTF encoding reliably.
> 
> Then how can you know how to output it?
Just pass the bytes to the console, and let the user worry about how it's displayed.
If you write "\xe4" to a file, you expect the file to contain the byte 0xE4. If
you write it in a console, the console should display the character in the
current character set which 0xE4 is mapped to.
-- 
Remove ".doesnotlike.spam" from the mail address.
    
    
More information about the Digitalmars-d-learn
mailing list