Displaying non UTF-8 8 bit character codes with writefln()

Stewart Gordon smjg_1998 at yahoo.com
Fri Oct 5 05:15:11 PDT 2007


"Regan Heath" <regan at netmail.co.nz> wrote in message 
news:fe2uf5$2gsa$1 at digitalmars.com...
> Try printf and saving the file as a UTF-8 encoded text file...

Why, exactly, are you advocating going back to the printf abomination?

<snip>
> Using this source saved as b5.d as a UTF-8 encoded text file (IMPORTANT) I 
> can set my command prompt font to "Lucida Console" and execute the 
> following commands:
>
> E:\D\src\tmp>chcp 65001
> Active code page: 65001
<snip>

This misses the point slightly.  The user shouldn't have to change the 
codepage just to get someone else's application to work properly.

What you want is my utility library:
http://pr.stewartsplace.org.uk/d/sutil/

Stewart.

-- 
My e-mail address is valid but not my primary mailbox.  Please keep replies 
on the 'group where everybody may benefit. 



More information about the Digitalmars-d-learn mailing list