I have an MFC application where the Character Set is "Not Set". What are the risks associated with running this application on a OS that has a Multi Byte Character Set code page?
Risks of running on single byte character app on a MBCS OS
135 Views Asked by JonDrnek At
2
There are 2 best solutions below
0
buttercup
On
The risks are:
1) If you use non-English texts, and the user enters, say, Russian, some Russian characters that are not mapped to MBCS or require a Charset layer, will be retrieved as '?'
2) You need to inform the customer that the App. accepts English-only and no guarantee the App, when entering non-English characters, would accept or retrieve non-English texts correctly.
3) Any texts with foreign language characters may lead to unwanted or undesired conversion of accents and diacritics to something else.
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in MFC
- Cannot "Go To Definition" in Visual C++ 2013
- reset mdi child view position
- Add a picture to Picture Control in a dialog box (error RC2108: expected numerical dialog constant)
- Background color for controls in MFC C++ is unable to set
- variable global const "macros" in C++ and optimal design patterns
- Converting long double to CString
- postmessage and message loop in different thread
- How to convert CString to long? VC++
- Can a dialog intercept drag'n'drop messages passed to its controls?
- Can I close (note, not terminate) a user process from a service by its PID?
- How can I have a multi-line item in a ListControl MFC?
- Getting the messages back to the same command line from where the MFC application was launched
- MFC - How to set the toolbar title?
- MFC SetTitle() causing weird debug assertion
- Application logs on the command prompt from where application is being launched
Related Questions in INTERNATIONALIZATION
- How to keep a variable in the URL when using Spring LocaleChangeInterceptor
- Shared behavior state across custom elements
- Using Bootstrap Datepicker Internationally
- ResourceBundleMessagesource - No way to access all properties from a file?
- angular-translate-based custom filter
- How to localize TextAngular tooltips
- Codeigniter view in Wordpress
- grails message as argument of other message
- Play Framework 2.4.0 and I18n with Scala
- Language selector in Play 2.4 & Scala 2.11.6
- How to manage en.yml for different api version
- Spring MVC: Fallback for unknown language code in uri parameter value
- CakePHP internationalization
- Internationalize C program
- symfony2: how to parameter localization so we can have 2 languages?
Related Questions in MBCS
- MBCS to UTF-8: How to encode in Python
- Does ANTLR for Java support MBCS?
- C++ Using std::string functions for MBCS and std::wstring functions for UTF-16
- How to convert UNICODE strings to MBCS in c#?
- How to work with substrings / delete character when content is mixed single and double byte?
- Under what circumstances would an EDIT control treat MBCS as UNICODE?
- How do I write MBCS files from a UNICODE application?
- Within Windows MBCS, what languages have 2 byte characters and what characters are they?
- MFC dialogs caption fails with Unicode
- MFC Multibyte Add-on for Visual Studio 2015 Express for Desktop
- How to know the preferred display width (in columns) of Unicode characters?
- Risks of running on single byte character app on a MBCS OS
- Logic behind converting a character to UTF-8
- Converting from Windows MBCS to UTF-8
- Read *.txt file with German text, show it in my GUI -- characters with umlauts not correct
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The "Character Set: Not Set" option defines neither
_MBCSnor_UNICODE. That means that you're using the *A series of functions. Those will return MBCS strings, even when_MBCSis not defined.If
_MBCSdoesn't affect the strings returned from the *A functions, then what does it do? It maps some<tchar.h>tcs*functions to theirmbs*versions, instead of thestr*orwcs*variants. E.g. without_MBCS,_tcsrevmaps tostrrev, not_mbsrev.Therefore, you may not be able to reverse the multi-byte strings you receive from the OS, or edit them otherwise.