← Back to index
|
Original Bugzilla link
Bug 4522 – Write outputs Unicode incorrectly (on Windows)
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-07-27T18:11:00Z
Last change time
2010-07-28T10:42:40Z
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0
by andrej.mitrovich — 2010-07-27T18:11:25Z
import std.stdio; void main() { string str = "Hall\u00E5, V\u00E4rld!"; foreach (dchar c; str) { write('[', c, ']'); } writeln(); } Prints: [H][a][l][l][Ã¥][,][ ][V][ä][r][l][d][!] Instead of: [H][a][l][l][å][,][ ][V][ä][r][l][d][!]
Comment #1
by smjg — 2010-07-28T10:42:40Z
*** This issue has been marked as a duplicate of issue 2742 ***