Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Someone2002

@Someone2002
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • w*fstream troubles
    S Someone2002

    Why w*fstream classes converts unicode characters to single byte before storing? As it well known, Standard Template Library has wstring type, which operates with the unicode characters. Also there is the corresponding steams types, such as for example wofstream. When I use the code below, resulting text file contains single byte characters (ASCII), i.e. the stream converts string from multibyte presentation to single byte. Why? I am absolutely sure that wstring contains natural unicode symbols. std::wofstream outfile ("somefile.txt") ; std::wstring str1 = L"Some string" ; //L translates char to wide char (MSVC) outfile << str1 ; outfile.close() ;

    C / C++ / MFC tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups