Re: Unable to decode file written by C++ wostringstream

2010-12-23 Thread Ulrich Eckhardt
Yan Cheng CHEOK wrote: > Currently, I have the following text file > (https://sites.google.com/site/yanchengcheok/Home/TEST.TXT?attredirects=0&d=1) > written by C++ wostringstream. Stringstream? I guess you meant wofstream, or? Anyway, the output encoding of C++ iostreams is implementation-defined

Re: Unable to decode file written by C++ wostringstream

2010-12-23 Thread jmfauth
On 23 Dez., 09:33, Yan Cheng CHEOK wrote: > Currently, I have the following text file > (https://sites.google.com/site/yanchengcheok/Home/TEST.TXT?attredirect...) > written by C++ wostringstream. > The coding of the file is utf-16le. You should take care of this coding when you *read* the file,

Unable to decode file written by C++ wostringstream

2010-12-23 Thread Yan Cheng CHEOK
Currently, I have the following text file (https://sites.google.com/site/yanchengcheok/Home/TEST.TXT?attredirects=0&d=1) written by C++ wostringstream. What I want to do it, I want to write a python script which accept user browser request, and then send over the entire file for user to downloa