Click here to Skip to main content
15,905,915 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Writing unicode to file Pin
yeah100021-Sep-09 0:42
yeah100021-Sep-09 0:42 
AnswerRe: Writing unicode to file Pin
Naveen21-Sep-09 1:12
Naveen21-Sep-09 1:12 
yeah1000 wrote:
The file wont open with openoffice and when i open it with notepad++ it displays some characters but most of them are NUL. What could be the problem?


For application to know that your file is a unicode one, the first two bytes of the file needs to be 0xff and 0xfe. If the first two bytes doesn't indicates any of the encoding codes, it will consider the file and ASCII file. I guess thats what happend in your case. Check http://en.wikipedia.org/wiki/Byte-order_mark[^] for more details.


GeneralRe: Writing unicode to file Pin
yeah100021-Sep-09 1:56
yeah100021-Sep-09 1:56 
GeneralRe: Writing unicode to file Pin
Naveen21-Sep-09 2:27
Naveen21-Sep-09 2:27 
AnswerRe: Writing unicode to file Pin
David Crow21-Sep-09 2:15
David Crow21-Sep-09 2:15 
GeneralRe: Writing unicode to file Pin
yeah100021-Sep-09 2:30
yeah100021-Sep-09 2:30 
GeneralRe: Writing unicode to file Pin
David Crow21-Sep-09 2:35
David Crow21-Sep-09 2:35 
GeneralRe: Writing unicode to file Pin
yeah100021-Sep-09 2:43
yeah100021-Sep-09 2:43 
GeneralRe: Writing unicode to file Pin
David Crow21-Sep-09 3:20
David Crow21-Sep-09 3:20 
QuestionCreate shortcut Pin
gdctld20-Sep-09 23:46
gdctld20-Sep-09 23:46 
AnswerRe: Create shortcut Pin
CPallini21-Sep-09 0:11
mveCPallini21-Sep-09 0:11 
AnswerRe: Create shortcut Pin
Nuri Ismail21-Sep-09 0:11
Nuri Ismail21-Sep-09 0:11 
Questionwindows service Pin
jinjiashan20-Sep-09 23:40
jinjiashan20-Sep-09 23:40 
AnswerRe: windows service Pin
Naveen21-Sep-09 0:10
Naveen21-Sep-09 0:10 
AnswerRe: windows service Pin
kilt21-Sep-09 0:34
kilt21-Sep-09 0:34 
Questionvirtual drive mount APIs? Pin
Peter Weyzen20-Sep-09 21:52
Peter Weyzen20-Sep-09 21:52 
AnswerRe: virtual drive mount APIs? Pin
Rajesh R Subramanian20-Sep-09 22:50
professionalRajesh R Subramanian20-Sep-09 22:50 
Questionhey guys i am new to this kinda thing.. Pin
kolobus20-Sep-09 17:51
kolobus20-Sep-09 17:51 
AnswerRe: hey guys i am new to this kinda thing.. Pin
CPallini20-Sep-09 20:47
mveCPallini20-Sep-09 20:47 
GeneralRe: hey guys i am new to this kinda thing.. Pin
kolobus21-Sep-09 0:32
kolobus21-Sep-09 0:32 
GeneralRe: hey guys i am new to this kinda thing.. Pin
kolobus21-Sep-09 0:46
kolobus21-Sep-09 0:46 
QuestionI need a connection avi or gif for my C app Pin
includeh1020-Sep-09 17:03
includeh1020-Sep-09 17:03 
AnswerRe: I need a connection avi or gif for my C app Pin
CPallini20-Sep-09 20:39
mveCPallini20-Sep-09 20:39 
QuestionA way to keep track of creating and deleting etc pens etc Pin
Anthony Appleyard20-Sep-09 11:57
Anthony Appleyard20-Sep-09 11:57 
AnswerRe: A way to keep track of creating and deleting etc pens etc Pin
Chris Losinger20-Sep-09 15:24
professionalChris Losinger20-Sep-09 15:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.