•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 361,912 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,554 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
Views: 747 | Replies: 4
![]() |
•
•
Join Date: Aug 2005
Location: Seaham, UK
Posts: 178
Reputation:
Rep Power: 3
Solved Threads: 2
Hi, I want to create an application like character map, for only specific characters, and extra features. There is quite a large problem in doing this though. I want to have controls whos captions have these special characters. However when I am creating this using my IDE, Pasting these characters into the code just put a "?", since the edit box in the IDE does not support all of these extra characters. I cant exactly use a RTF editor since when the file is saved it saves with it all of the formatting chars etc. I need to be able to use a plain text editor that supports these characters, any ideas?
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 9,886
Reputation:
Rep Power: 32
Solved Threads: 793
•
•
Join Date: Aug 2005
Location: Seaham, UK
Posts: 178
Reputation:
Rep Power: 3
Solved Threads: 2
I have tried switching the font on notepad to Microsoft Sans Serif using the special characters. The characters where displayed correctly, but when i saved the file, it prompted me to save the file with unicode encoding to support these characters. In doing this i tried to compile the file and i recieved lots of errors like ... "C:\file.cpp:182:1: warning: null character(s) ignored"
Saving with ANSI encoding does not support these characters, and unicode generates lots of errors.
Saving with ANSI encoding does not support these characters, and unicode generates lots of errors.
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 9,886
Reputation:
Rep Power: 32
Solved Threads: 793
you probably need to compile your program to support UNICODE. You can't treat a unicode-written file as if it were an ascii file becuase it is not the same file format. UNICODE characters are two or more bytes per character.so you need to use char data type with wchar_t and use unicode replacements for string handling functions. c++ std::wstring instead of std::string.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
Similar Threads
- When a host says "included scripts" (Networking Hardware Configuration)
- ultrix operating system (Computer Science and Software Design)
- Help Me Please (C++)
- Can't remove "about:blank" homepage. Please help. (Viruses, Spyware and other Nasties)
- OPXPApp.exe (Windows NT / 2000 / XP / 2003)
Other Threads in the C++ Forum
- Previous Thread: Psuedocode
- Next Thread: Constructor troubles



Linear Mode